Android Debug Bridge allows us to debug Android devices and modify the system from a command window. However, if you have not set up Android SDK platform-tools on your computer properly and enabled USB debugging on your device, they can’t recognize and communicate with each other. We have shared some solutions to fix the “ADB is not recognized as an internal or external command” error on Windows 10 and 11.

Table of Content

Possible Reasons for ADB and Fastboot Errors

There may be various reasons you are encountering the “adb is not recognized…” error in the Command Prompt. Depending on the scenario, the error message you get may differ. Below is a screenshot of the error I recreated on my Windows 10 PC.

adb command not found

'adb' is not recognized as an internal or external command, operable program or batch file.

So, if you’re getting the “adb is not recognized as an internal or external command” error in the CMD or PowerShell, it could be due to one of the following reasons.

  • Windows PCs don’t come with ADB and Fastboot drivers pre-installed. You must download and set up the Android SDK platform tools separately.
  • You may get the “ADB command not found” error if you have an outdated version of ADB and Fastboot drivers. Installing the latest SDK platform tools on your PC might fix the problem.
  • Running the ADB command from a location where ‘adb.exe’ is not present might also cause errors.
  • You haven’t set the correct path under User variables or System variables while setting up system-wide ADB on your PC.
  • In case you are trying to flash an OTA update.zip, a factory image, or a custom recovery image, make sure you have saved the files to flash in the ‘platform-tools‘ folder along with ‘adb.exe’, ‘fastboot.exe’, etc.
  • Ensure your Android phone is connected to the computer in file transfer mode. ADB won’t recognize the connected device in the Charging mode.
  • If you’re a Samsung user, navigate to Settings > Security and Privacy and ensure Auto Blocker is disabled.

Fixing ‘ADB is not Recognized…’ Error

ADB and Fastboot commands won’t work on your Windows PC unless you open the PowerShell or Command Prompt with the path of the folder containing the files from the SDK platform tools. The fixes suggested below will solve the ADB and Fastboot errors.

Fix 1: Download Latest SDK Platform Tools

Remove and uninstall any 3rd-party ADB client if you have it installed. Download the latest version of Android SDK platform tools for Windows directly from Google servers. Always ensure to have the latest ADB drivers on your PC.

5 Ways to Restore Deleted Contacts on Android

Fix 2: Execute Commands with the Path to ADB

Since the official ADB and Fastboot drivers are not installer files, you must direct the Command Prompt to the exact path or location of the ‘platform-tools‘ directory. Now, there are 3 ways to do that.

  1. Open the ‘platform-tools‘ or the folder where you saved the ADB and Fastboot files. Click the folder address bar, type “powershell” or “cmd” and press Enter.launch powershell in android platform tools folder
  2. Open the ‘platform-tools‘ folder. Click the File tab in the file explorer window and select Open Windows PowerShell.open windows powershell in folder
  3. With the ‘platform-tools‘ folder in focus, hold the Shift key and right-click at an empty area in the folder window. Select Open PowerShell window here or Open in Terminal from the context menu. You can add a permanent option to launch the command prompt to the Windows 10 context menu.Open terminal in the platform tools folder

Fix 3: Use the ‘platform-tools’ Folder Path

Another way to add the path to the ‘platform-tools’ folder in the command window is using the cd or chdir (change directory) command. This command tells PowerShell to trigger ADB or Fastboot from a given path. Just launch the command window and type cd followed by the platform-tools folder path and hit Enter.

cd c:\technastic\platform-tools

cd command to change path to adb and fastboot

Fix 4: Add a User or System Variable Path for ADB

Although the CD method gives the expected result, it’s time-consuming as you need to type the folder path every time you use ADB. The easiest way to access ADB and Fastboot universally from any screen on your Windows PC is to set up system-wide ADB and Fastboot.

This method involves adding System or User Variables for the path of the ‘platform-tools‘ folder and below we’ll see how to do that.

  1. Open Advanced system settings on your Windows PC. You can go to those settings in 3 ways.
    1. Type ‘Advanced system settings‘ in the Windows search bar and launch it.advanced system settings windows 10
    2. Right-click This PC on the right pane in the File Explorer window and click on Properties> Advanced system settings.windows pc system properties
    3. Open the Control panel and navigate to System and Security> System> Advanced system settings.
  2. Once you get to the System Properties pop-up window, click Environment Variables.windows 10 system properties
  3. A new pop-up window named Environment Variables will appear. Click on any item under User variables or System variables and click on New.system variables windows 10
  4. When the New User/System Variable pop-up appears, type “Path” under the Variable name, then click on Browse Directory. Navigate to the ‘platform-tools‘ folder and click on the OK button.creating new system variable windows 10
  5. Finally, click OK to add the path variable.
  6. Next, click OK in the Environment Variables window to save it.

Done! You have successfully set up system-wide ADB and Fastboot on your Windows PC. Now, you can execute ADB or Fastboot commands from any screen without navigating to the ‘platform-tools’ folder.

Fix ‘adb.exe: no devices/emulators found’ Error

adb.exe: no devices found error in command prompt

If you are getting adb.exe: no devices/emulators found error it means that the ADB daemon is unable to detect your device. It might be due to the following reasons.

  1. Your Android phone or tablet is not connected to the computer.
  2. You haven’t turned on USB debugging from the Developer options on your device.

Take care of the above things, reconnect your device, and try again. The error should have gone away.

Bonus Tip

So that your Windows computer can communicate with your Android device, you must keep USB debugging enabled on your device. Not just that, don’t forget to extend the screen timeout duration. As soon as you run the first ADB command, you’ll be prompted to Allow USB debugging on your device. You must select ‘Allow‘ to authorize ADB.

allow usb debugging on computer

Launch the Command Prompt or Windows PowerShell again to check whether the ADB is not recognized… error is fixed. Try any of the following commands:

adb
adb devices
adb version

command to check adb version

Fix Fastboot is not Recognized Error

The fixes I suggested above to solve ADB or ADB command not recognized error will also fix the following issue.

'fastboot' is not recognized as an internal or external command, operable program or batch file.

However, if you’re still getting the Fastboot is not recognized error while flashing the TWRP.img file, a factory image, or root your Android device, here’s how to fix it. The solution should also work if Fastboot is not detecting a connected device.

  1. Download the SDK platform-tools and extract the zip file.
  2. Open the ‘platform-tools‘ folder.
  3. Now, copy or move the files you want to flash to your Android device to the same folder where ‘adb.exe‘ and ‘fastboot.exe‘ files are present.twrp.img file in adb fastboot folder
  4. Reboot your Android device into the Fastboot Mode using the following command.
    adb reboot fastboot
  5. While your device is in Fastboot Mode, connect it to the PC via USB.
  6. Then launch a command window from the ‘platform-tools‘ folder.
  7. It’s time now to execute the following command.
    fastboot devices
  8. If you get the list of attached devices in the command window, it means everything is fine. However, if you encounter any of the following issues, try plugging out the USB cable and inserting it again. If it still doesn’t help, try to reboot your phone and PC and try again.
    • Fastboot does not detect the device
    • Fastboot devices not showing in cmd
    • Fastboot waiting for the device

The Fastboot is not recognized error should be gone.

If you are still getting any ADB or Fastboot-related issues, ping us so we can assist you in fixing them.

Was this Article helpful?
YesNo