Fix Error ‘adb’ is not recognized as an internal or external command

If you are getting the error ‘ADB’ is not recognized as an internal or external command, operable program or batch file” while running the ADB command in command prompt or Power Shell, here is the solution.

The Android Debug Bridge a.k.a adb is a command line tool which is a part of  Android SDK Bundle and also available individually. Android debug bridge is a simple and practical tool for managing Android devices; it is also an Android simulator, a very important mobile phone tool, belonging to Android SDK, through which you can directly manage or operate your Android emulator, including the real android device, but also system upgrades, software installation, run commands, etc., so that the user will then operate your mobile phone on this computer, including the management of mobile phone data, port mapping Download the uploaded file, etc. You can download ADB files individually from here to flash your smartphone: Download the ADB ZIP file for Windows

So, coming to the main topic of this tutorial, the ADB as the individual package comes in a zipped file which we have to navigate through Command Prompt to run adb and other command line tools for android available in that. However, many times on Windows 10/8/7 when we try to run adb we could get an error “‘adb’ is not recognized as an internal or external command, operable program or batch file“. This error appears because there is no system variables for that on computer. Here, we show how to do that but before doing it download JavaSE on your computer if you have not installed it.

Step 1: Download JavaSE

To download and install the Java Run time environment, first visit Oracle’s official website here is the link. On the download page click on the Java Platform (JDK) Download button and then scroll down to all the available platform options. Agree to terms and conditions and then select the Windows _X64_bin.exe.

After downloading double click on the setup and install JavaSE on Windows 10/8/7.

Install Java run time environment in Windows

Step 2: My Computer properties

Right click on My Computer icon present on Desktop or in Windows Explorer right side and select the option Properties.

My Computer properties

Step 3: Go to Advanced System Settings

On the right side of the system properties, you will find an option “Advanced system Settings” click on that.

system advance settings windows 10

Step 4: Set System Variables

Go to Environmental Variables Button and click that.

Environmentals variables

Double click on Path System Variables

System variables path

Select the Browse button

Browser system variables path

Browse the folder where you have the adb files.

For example, in our case, we have downloaded the ADB files on the desktop, so we browsed and selected the same. In the same way, select your ADB folder.

Select platfroms tools folder

Now the system variables for ADB has set, press OK button and get back to your ADB folder.

Save the new enviroenmental path

Step 5: Run ADB command

Open the ADB folder press the Shift key and right-click to select Power shell. In some cases, it could show Command Prompt or both Prompt & Shell. In our case only the Power shell was there, so we selected that.

Open ADB fodler in power shell

Run any ADB command and this time you won’t find the error ‘adb’ is not recognized as an internal or external command, operable program or batch file at all.

adb error will not appear

Other Useful Resources:

 

5 Comments

  1. Mahmudul Hasan Ramiz August 27, 2019
    • Mahmudul Hasan Ramiz August 27, 2019
      • H2S Media Team August 28, 2019
    • H2S Media Team August 28, 2019
  2. siddharth gosavi August 30, 2019

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.