Android : adb shell, no command adb found
I am simply trying to run the adb shell so I can kill a process for testing purposes. I am in the directory platform-tools and the adb executable is in there开发者_Go百科. When I try to run the shell it says adb command not found. I am running eclipse (through Ubuntu) and using an emulator. Not sure whats going on. Thanks a lot.
Run it like that ./adb shell
(note the ./
)
By default, local folder is not in the path.
adb is not in your path. It's easy enough to add it to your path though, if you're using the latest version of the sdk, open up your .profile file (in your home directory, that's (dot) profile) and add the lines:
PATH=/path/to/sdk/android-sdk-linux_86/tools:$PATH
PATH=/path/to/sdk/android-sdk-linux_86/platform-tools:$PATH
You can create a link for adb like this : ln -s adb /usr/local/sbin/adb then you can run adb anywhere
精彩评论