Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb command not found when trying to use adb to install apk file

Tags:

apk

adb

I'm trying to install an apk file in my emulator. I navigated to the directory where the apk file is and typed adb install [name of file].apk

I received this response:

-bash: adb: command not found

What should I do? Please keep it simple as I don't know much about this.

like image 710
Jimmy Verner Avatar asked Sep 07 '12 16:09

Jimmy Verner


1 Answers

Type "which adb" in the terminal and see the location of the adb. If no location/ path to adb is displayed, then you should add the location of the platform-tools folder from the android sdk in the system PATH variable.

export PATH=$PATH:/home/path_to_android_sdk/platform-tools

Also, to make the change permanent, you could edit the .bashrc file and add the above line at the end. Save and execute .bashrc.

like image 143
Gabriel Porumb Avatar answered Sep 27 '22 20:09

Gabriel Porumb