adb is not recognized as internal or external command on windows

Lukap picture Lukap · Jan 5, 2012 · Viewed 142.3k times · Source

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.

Answer

Ovidiu Latcu picture Ovidiu Latcu · Jan 5, 2012

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.