Fix android studio adb is not recognized as an internal or external command

How to solve android studio terminal error ‘adb’ is not recognized as an internal or external command, operable program or batch file.

In android studio, the terminal command is useful, you can use it to run commands. but sometimes, you get the error message when you try to run adb commands on it, usually the error is something like this ‘adb’ is not recognized as an internal or external command, operable program or batch file.  



This error, however is mostly a problem with the path to the ADB folder

 

How to solve the ‘adb’ is not recognized’ error in android studio terminal

To fix the error, we need set the correct path to adb folder, follow the instructions below to set correct path, you need to know where the adb is located in the windows, usually it comes installed along with the platform tools when you download android sdks from the android studio sdk manager.

If you can’t find the adb anywhere in the windows, you will need to download the adb and install it in your system

In my PC, the adb is located at C:\Users\ziddik\AppData\Local\Android\Sdk\platform-tools 

This is the default location for android studio to install adb, so check it in your computer, and after finding the path, follow the instructions

In android studio, Right click File > Settings or Ctrl + Alt+S 


A new window will appear, select Tools and  terminal, and  in the Start directory field, Enter the path to the adb

 

Click ok, try to enter adb commands in the terminal, it should be recognized now

Related Posts

Fix Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources

Here is how to fix Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources This error is caused by mismatching…

Get Age from Date of Birth in Java Android

Here is how to get a user’s age from date of birth If you need get a user’s age from a given date of birth string, this…

How to Check if String Array Contains a Specific String in Android

Here is how to get a specific value or String from Array in Android To check if a string array contains a specific string, you can use…

Make Android WebView Support Razorpay Payment

How to Support Razorpay Payment and UPI in Android WebView? Android webview is inexpensive and easy way to make apps for websites. But to support some specific…

Make Android Webview Support PayTM Google Pay PhonePe UPI

GooglePay, Phonpe and PayTM support in Android WebView If you have built an android app for your new ecommerce website or any other website that needs accept…

This Post Has 5 Comments

  1. That worked !

    However it only solves a half of my predicament.

    When I set the path to adb. if I try to run,edit, or add something else, like (avdmanager) it leads me to the same type of thing

Leave a Reply

Your email address will not be published.