Adb is not recognized as an internal or external command, operable program or batch file

Adb is not recognized as an internal or external command, operable program or batch file

If you are facing this issue “‘adb’ is not recognized as an internal or external command, operable program or batch file” then in this article I am going to show you step by step method to fix this issue very easily.

Adb is not recognized as an internal or external command, operable program or batch file

Page Contents

1

  • 1. Downloading android SDK platform tool
  • 2. Extract the file at “C:\Program Files” folder
  • 3. Open file explorer and go to platform-tools folder
  • 4. Adding platform-tools path to Environment Variable
  • 5. Restarting PC/Laptop and running adb command
  • Conclusion
  • FAQs

1. Downloading android SDK platform tool

Android SDK Platform-Tools is a tool for Android SDK in which some tools are there that interface with the Android platform, primarily adb and fastboot.

Downloading this tool will be useful for directly using adb from the command-line.

  • Download the latest SDK Platform-Tools from Official Android Developer Website

Adb is not recognized as an internal or external command, operable program or batch file

  • Download SDK Platform-Tools according to your Operating System. Ones it gets downloaded, follow next steps…

2. Extract the file at “C:\Program Files” folder

Adb is not recognized as an internal or external command, operable program or batch file

  • Right Click on the downloaded file.
  • Click on Extract files option.
  • Change the destination path to C:\Program Files
  • Click on OK.

3. Open file explorer and go to platform-tools folder

Adb is not recognized as an internal or external command, operable program or batch file

  • Now copy the path C:\Program Files\platform-tools

4. Adding platform-tools path to Environment Variable

  • Right click on This PC
  • Click on Properties
  • Now click on Advanced System Settings present on right hand side.

Adb is not recognized as an internal or external command, operable program or batch file

  • Click on Environment Variables

Adb is not recognized as an internal or external command, operable program or batch file

  • Double click on Path in System Variables

Adb is not recognized as an internal or external command, operable program or batch file

  • Click on new
  • Paste the copied Path to the input box.

Adb is not recognized as an internal or external command, operable program or batch file

  • Click OK

5. Restarting PC/Laptop and running adb command

  • Restart your computer.
  • After restating, Open Command Prompt.
  • Now run adb command on Command Prompt.

Adb is not recognized as an internal or external command, operable program or batch file

  • After running adb command, we can see it’s working!!

Conclusion

Now you can run adb command and use it as whatever your use cases are…!! Hope this was helpful to you, you also can help others by sharing this, For any queries, comment down your queries we’ll try our best to resolve your query.

FAQs

What is Android Debug Bridge (ADB)?

ADB (Android Debug Bridge) is a accomplished command-line tool that allows the user to communicate with the android devices. This tool facilitates a variety of actions on your device, like installing or debugging apps, and it provides access to the Unix shell that you can use to run various commands on the device.

What is Environment Variable?

Environment Variable is a system variable whose value is set at the operating system environment which can be accessed throughout the system, These variables are defined to inquire the value of this variable to find out where the operating system files are located.

How do you fix error ADB is not recognized as an internal or external command operable program or batch file?

Set the path of adb into System Variables. You can find adb in "ADT Bundle/sdk/platform-tools" Set the path and restart the cmd n then try again. You can also go to the dir where adb.exe is located and do the same thing if you don't wanna set the PATH.

How do you fix the term ADB is not recognized?

Solution 4: Enable USB Debugging USB debugging is a feature that should be enabled before your Android phone is connected to the computer. This “ADB is not recognized” issue may occur if the USB debugging option is not enabled in the Android phone connected to the computer.

Is not recognized as an internal or external command ADB?

It is utilized to manage either an actual Android device or a simulator. Occasionally, users may face an error “adb is not recognized as an internal or external command Windows 10”. This error occurs if adb is not installed on the system or the Path variable is not added in Windows.

How do I enable ADB commands?

Follow these steps to debug using ADB commands:.
Find your emulator device ID. Run C:\>adb devices . ... .
Find the package you want to debug. Run adb shell pm list packages . ... .
Set the app to debug at startup (note the -w) ... .
Start the app in the emulator. ... .
Connect Android Studio Debugger. ... .
Point to source code and set breakpoints..