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

I am trying to install apk file in emulator. I went to the directory where the apk file is located and typed adb install [file name] .apk

I got this answer:

-bash: adb: command not found

What should I do? Please keep it simple as I know little about it.

+5
source share
2 answers

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

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

Alternatively, to make the change permanent, you can edit the .bashrc file and add the line above at the end. Save and run .bashrc.

+10

, , . android sdk paltform-tools ( " " ).

: UBUNUTU 12.04, adt android sdk :/usr/lib/eclipse/adt-bundle-linux-x86_64/sdk/platform-tools

0

All Articles