I set the c:/android-sdk/tools
path to the path environment and commands like emulator
is working just fine. But the adb
command is still not recognized, what should I do ?
In the path
system variable I added the android-sdk
path and the tools
path so far. Is there something else that needs to be done? Because commands like adb devices
do not work. It says that the command is not recognized. By the way I want to do adb install comeapp.apk
.
Set the path of adb into System Variables. You can find adb in "ADT Bundle/sdk/platform-tools" Set the path and restart the cmd n then try again. You can also go to the dir where adb.exe is located and do the same thing if you don't wanna set the PATH.
How to setup ADB on Microsoft Windows. Download the Android SDK Platform Tools ZIP file for Windows. Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “Open command window here” option.
If the ADB command is not found, most likely you need to install the Android SDK Platform-Tools package to make it available in the command prompt. Also, the phone should be in USB debugging mode.
It might be that the ADB issue is not with your computer but is with your Android device. In most cases, ADB cannot recognize your device because the USB debugging option is turned off on the device. Turning this option on can fix the issue for you and this is pretty easy to do.
If you go to your android-sdk/tools
folder I think you'll find a message :
The adb tool has moved to platform-tools/
If you don't see this directory in your SDK, launch the SDK and AVD Manager (execute the android tool) and install "Android SDK Platform-tools"
Please also update your PATH environment variable to include the platform-tools/ directory, so you can execute adb from any location.
So you should also add C:/android-sdk/platform-tools
to you environment path. Also after you modify the PATH
variable make sure that you start a new CommandPrompt
window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With