简体   繁体   中英

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM