How to Fix “adb not recognized” Error

0
49
How to Fix “adb not recognized” Error

ADB or Android Debug Bridge is a command-line tool. Part of the Android SDK and Platform Tools. It creates a bridge that allows for successful communication between your Android device and PC. Some of the most important Android customizations are possible thanks to these ADB commands. These include installing a custom recovery, booting your device to recovery or fastboot mode, unlocking the bootloader, installing APKs, etc. Among them, the most common is “adb” is not recognized as an internal or external command, operable program or batch file. So let’s come and check the various steps to fix this “adb not recognized” error.

Fix “adb not recognized” Error

The error is caused when the PowerShell or Command prompt is not able to identify the ADB command. This is because of the missing environmental (system) variable related to the Android SDK. To fix this “adb not recognized” error, make sure to first get yourself familiar with the below prerequisites.

  • You should be having the latest version of Android SDK and Platform Tools.
  • Make sure that USB Debugging is enabled on your device:
    • Go to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > Developer options > Toggle on the USB Debugging switch. For a much detailed explanation, head over to our guide on how to enable the Developer options and USB Debugging on Android.

Make sure that the above two points are just the initial steps in the fixing of the “not recognized” error. Likewise, they can’t fix the issue until you carry out the detailed instructions given below.

Add the Missing Environmental Variables

  • At first, click on the Windows icon and search for Advanced System Settings.
  • Now click on Environmental Variables. It will be the last option, just below Settings.
  • Then you will see two sections: User Variables and System variables. We will be dealing with the latter in fixing the “adb not recognized” error.
  • In System Variables option, double click on the Path keyword
  • The Edit environment variable option will now pop up. Click on the Browse option.
  • Now navigate to the location where you have installed the ADB and Fastboot binaries and select the platform-tools folder. Then click on OK.
  • The selected variable will now be successfully added to the environment variables. Click on OK to close the dialog box.
  • Check System variables under Environment Variables. The path section will also be having the recently added variable’s path.
  • Close this dialog box by clicking on OK.
  • Finally, click on OK once again to close the System Properties dialog.

Check the adb error fix:

There are two methods for checking whether you have successfully fix for “adb not recognized error” or not. The first one involves the use of Command Prompt whereas the second one is done via PowerShell Window. In both methods, you will first have to navigate inside the ADB and Fastboot’s platform-tools folder. Once you reach there, you could try out any of the two below methods:

Method 1:

  • Using Command Prompt: This is a very easy method. Inside the platform-tools folder, check the address bar and type cmd. Here you press enter and the Command Prompt window will pop. Type adb and you should get a long list of ADB commands and its usage. If that’s the case, then the fix for “adb not recognized” error has been successfully implemented.

Method 2:

  • Using PowerShell Window: Inside the platform-tools folder, right-click on an empty area while pressing the Shift key. Now select the Open PowerShell window here option. That’s it. Enter adb and on seeing a long list of ADB codes (see below image for reference), you would be reassured that the error is no longer there.

Conclusion:

So here is a detailed guide on how to fix “adb not recognized” error. Do let us know if you face any difficulty while executing any of the above steps.

Also Read: Android SDK Platform Tools- ADB and Fastboot For Windows/Mac/Linux

LEAVE A REPLY

Please enter your comment!
Please enter your name here