Tuesday, April 30, 2013

ADB is Not Recognized as an internal or external command Fix


ADB is Not Recognized as an internal or external command Fix


Some of you are facing problems with Path, because of that you will see the error as below. Even though it is basic lot of people asking this same question. Hence posting this tutorial to fix this error.

In Windows --> Click Start --> Run --> cmd

When you run adb in the command prompt you will see an error as below

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\MOHAMMED>adb
'adb' is not recognized as an internal or external command,
operable program or batch file.


To fix this error you need the Android SDK if you don't have it please follow the steps below,


Open the browser and navigate to http://developer.android.com/index.html


Click the Get the SDK as shown in the above image


Click Download the SDK as shown in the above image


Check the checkbox for the license agreement, Select 32 or 64 bit based on your operating systtem.
Click the download SDK link.

Wait patiently until the download is complete.

My machine is a 64 bit Windows, hence the file downloaded is adt-bundle-windows-x86_64-20130219.zip

The zip file contains the following folders eclipse & sdk.

I have extracted to the following location in my machine

Hence i have the following in the path 

C:\Users\MOHAMMED\Downloads\adt-bundle-windows-x86_64\sdk\platform-tools


C:\Users\MOHAMMED\Downloads\adt-bundle-windows-x86_64\sdk\tools


You can see that adb.exe is in the location C:\Users\MOHAMMED\Downloads\adt-bundle-windows-x86_64\sdk\platform-tools



Execute the following commands in the command prompt and run adb it will be recognized now.

set ANDROID_PLATFORM_TOOLS="C:\Users\MOHAMMED\Downloads\adt-bundle-windows-x86_64\sdk\platform-tools"

set ANDROID_TOOLS="C:\Users\MOHAMMED\Downloads\adt-bundle-windows-x86_64\sdk\tools"

set path=%path%;%ANDROID_PLATFORM_TOOLS%;%ANDROID_TOOLS%



To Fix it permanently set in the environment variable 


Right Click My Computer --> Click Properties 


Click Advanced System Settings 

Click Environment Variables


Click New  as below, 


Variable name: ANDROID_PLATFORM_TOOLS

Variable Value: C:\Users\MOHAMMED\Downloads\adt-bundle-windows-x86_64\sdk\platform-tools


Variable name: ANDROID_TOOLS

Variable Value: C:\Users\MOHAMMED\Downloads\adt-bundle-windows-x86_64\sdk\tools



Edit the Path variable if it exist, else create a new variable Path 

Variable name: Path

Variable Value: %Path%;%ANDROID_PLATFORM_TOOLS%;%ANDROID_TOOLS%



adb should be working on command prompt and 'adb' is not recognized as an internal or external command,
operable program or batch file is resolved now.





17 comments:

  1. Thanks man.. It helps me alot

    ReplyDelete
  2. didnt fix it. 0/10

    ReplyDelete
  3. Ifb washing machine repair

    They are providing washing machine repair services which consist of single door refrigerator,Double door refrigerator ,Triple door refrigerator,Four door refrigerator,french door refrigerator ,side by side fridge and Semi-automatic Washing machine repair Services,Fully-automatic Washing machine repair Services,Top load Washing machine repair services ,front load washing machine repair services. We also provide Microwave repair service ,oven repair service and other appliance repairs etc.
    Ifb washing machine repair

    ReplyDelete
  4. Nice Blog!
    Facing error while using QuickBooks get instant solution with our QuickBooks experts.Dial +1-(855)533-6333 Quickbooks Enterprise Support Phone Number

    ReplyDelete
  5. Nice information .
    fantasy cricket app, If you have good knowledge of cricket you can win huge amount by using of skill at top 10 fantasy cricket apps or new fantasy cricket app many and more people are earn amount at this new fantasy app.
    top 10 fantasy cricket apps

    ReplyDelete
  6. Thanks for sharing this useful information! Hope that you will continue with the kind of stuff you are doing. Print profits review

    ReplyDelete
  7. Hi....Nice Blog. If you are facing any issue in QuickBooks, dial QuickBooks Support Number in Arizona and get your problem instantly.

    ReplyDelete
  8. Nice Blog, thanks for sharing with us. Visit Aarfragrance for Nautica Voyage For Men EDT 100ml, Rasasi Fattan Pour Homme EDP 50ml, Titan Skinn Raw For Men EDP 100ml, and Buy Perfumes for Women Online in India.
    Titan Skinn Raw For Men EDP 100ml

    ReplyDelete