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

,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *

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