Tuesday, 12 August 2014

How To Fix ADB is Not Recognized as an internal or external command Error Problem

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. PLEASE NOTE ALL THE THINGS WRITTEN FROM RED FONTS IN THIS BLOG ARE VERY IMPORTANT TO LOOK.

In Windows --> Click Start (If you are using Windows 8 Right Click On The Start Icon--> Run --> Write cmd

When you run adb in the command prompt you will see an error as below (Make sure you are writing adb)

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

C:\Users\AZAM>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,




If you are using 32 bits Windows make sure you are downloading 32 bit file. In my case I am using 64bit 
(Please make sure that you are downloading this file on the desktop display of you PC like me)


Now Extract Above File Picture File and  after extracting it inside the folder you will see files like below picture, Follow on screen instructions now 




Now again press Windows --> Click Start (If you are using Windows 8 Right Click On The Start Icon--> Run --> Write cmd. When command open up write the below command on command window like below picture. Please make sure that you are writing these commands one by one. After writing first command press enter to write second command and after writing second command press enter to write third command 

set ANDROID_PLATFORM_TOOLS="C:\Users\AZAM\Desktop\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\platform-tools"

set ANDROID_TOOLS="C:\Users\AZAM\Desktop\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\tools"

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


Now write adb and here you have successfully soved the issue of ADB 



The path above shown in the photo might be different then yours because my PC name is Azam and your will be different than mine. To manually found out the filepath watch below captions and copy and paste those command on command windows one by one as mentioned above instead of the above command


Now get into sdk and you will see below folders , get in to platform-tools folders and follow on screen instructions



From the above window watch out below highlighted path copy that path instead the path, I have provided for the first command. For second path watch below picture this is inside Tools Folder which is below platform-tool folder inside sdk folder.


Third path will be the same for every PC . Now write adb and you will get a below picture like process and commands in your windows command and you now your PC successfully recognized ADB files. 


















No comments:

Post a Comment