Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb is not recognized as internal or external command on windows

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.

like image 330
Lukap Avatar asked Jan 05 '12 15:01

Lukap


People also ask

How do you fix ADB is not recognized as an internal or external command?

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 do I enable ADB on Windows?

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.

Why ADB command is not working?

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.

Why is ADB not detecting my device?

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.


1 Answers

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.

like image 168
Ovidiu Latcu Avatar answered Oct 07 '22 23:10

Ovidiu Latcu