TechBuzzPro

ADB Not Recognized on Windows? Fix It Step by Step

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

"adb is not recognized as an internal or external command" means Windows cannot find the adb.exe file because the folder containing it is not in your system PATH. The fix is to locate your platform-tools folder, add that folder to the PATH environment variable, then open a new Command Prompt so the change takes effect. This guide walks through that process, explains why it happens, and covers the common traps that keep the error coming back.

What You'll Need

  • A Windows PC (Windows 10 or 11; the steps are nearly identical on both).
  • The Android SDK Platform-Tools package, downloaded from Google's official Android developer site. Do not use third-party mirrors.
  • Administrator rights on the PC, because editing system environment variables requires them.
  • A USB cable and a device with USB debugging enabled if you plan to actually connect a phone or tablet.

Step-by-Step

  1. Find where adb.exe actually lives. If you installed Android Studio, the default location is C:\Users\<YourName>\AppData\Local\Android\Sdk\platform-tools. If you downloaded the standalone platform-tools ZIP, it is wherever you extracted it, for example C:\platform-tools. Open that folder in File Explorer and confirm you can see adb.exe. If you cannot, the download or extraction failed and you need to redo it.
  2. Copy the full folder path. Click the address bar in File Explorer, select the whole path, and copy it. It should look like C:\platform-tools with no trailing backslash and no quotes.
  3. Open the Environment Variables dialog. Press the Windows key, type environment variables, and choose Edit the system environment variables. In the System Properties window that opens, click Environment Variables near the bottom. Labels can differ slightly by Windows version, but this dialog has been stable for years.
  4. Edit the Path variable. In the lower System variables list, select Path and click Edit. Click New, paste the folder path you copied, and click OK. If you prefer the older single-line editor, you can append ;C:\platform-tools to the end of the existing value instead, but the list editor is safer because it avoids typos.
  5. Close every dialog with OK. Changes are only saved when you confirm each window. Closing with the X button discards them.
  6. Open a brand-new Command Prompt. Existing windows keep the old PATH. Press the Windows key, type cmd, and open Command Prompt. Type adb version and press Enter. You should see the ADB version number and build information. If you see that, the problem is solved.
  7. Connect your device if needed. Plug in the phone, accept the Allow USB debugging prompt on the device, and run adb devices. A serial number followed by device means everything is working. unauthorized means you have not accepted the prompt yet; offline usually means a cable or driver problem.

Common Mistakes

  • Pointing PATH at adb.exe instead of its folder. PATH entries are directories, not files. Adding C:\platform-tools\adb.exe will not work.
  • Leaving quotes around the path. Pasting "C:\platform-tools" into the Path list can break the entry. Remove the quotes.
  • Editing the user Path when you meant the system Path. Either works for your own account, but if another user or a service needs adb, use the system variable. Mixing them up is a common source of confusion.
  • Testing in the same Command Prompt. The old window still has the old environment. Always open a fresh one.
  • Assuming the SDK folder exists. Android Studio installs platform-tools only if you selected that component. Check the folder before blaming PATH.
  • Using a renamed or moved folder. If you later move platform-tools, the PATH entry becomes stale and the error returns.

Tips

  • Keep platform-tools in a short, permanent path such as C:\platform-tools so you never have to update PATH again.
  • Run where adb in Command Prompt to see exactly which copy Windows is finding. If it prints nothing, PATH is still wrong.
  • If you use PowerShell, the same PATH applies, so no separate setup is needed.
  • Update platform-tools occasionally from the official developer site; older builds can fail to talk to newer devices.
  • For device connection issues, install the official Google USB driver through Device Manager rather than random driver packs.

Troubleshooting

Still "not recognized" after editing PATH. Reopen the Environment Variables dialog and confirm the entry is present and spelled correctly. Then open a new Command Prompt. If it still fails, sign out of Windows and back in, which forces a full environment refresh.

"adb" works but "adb devices" shows nothing. This is a device or driver issue, not a PATH issue. Try a different USB cable and port, check that USB debugging is on in the phone's developer options, and revoke USB debugging authorizations on the device, then reconnect and accept the prompt again.

Access denied when saving PATH. You are not running with administrator rights. Open the Environment Variables dialog from an administrator account, or right-click the Start button and use the appropriate administrative option.

PATH entry disappears after a reboot. Something is overwriting the variable, often a script or a policy on a work machine. Re-add it and check with your IT administrator if the PC is managed.

Multiple copies of adb. If where adb lists more than one, Windows uses the first match. Remove or rename the unwanted copy, or reorder the PATH entries so the correct folder comes first.

Frequently Asked Questions

Do I need Android Studio to use adb?

No. The standalone platform-tools package from Google's developer site contains adb and fastboot and is enough for most tasks.

Why does it work in one Command Prompt but not another?

The window that was open before the PATH change still holds the old environment. Close it and open a new one.

Does this fix work on Windows 11?

Yes. The Environment Variables dialog and PATH editing work the same way, with only minor wording differences.

Can I avoid editing PATH at all?

Yes. You can run adb by typing the full path to adb.exe, or by opening Command Prompt inside the platform-tools folder. Editing PATH is simply more convenient.

Is it safe to add platform-tools to PATH?

Yes, as long as the files came from Google's official download. Avoid unofficial copies, which may be modified.

Why do I get "unauthorized" in adb devices?

The phone has not trusted the computer yet. Unlock the device and accept the USB debugging prompt, then run the command again.