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
This Post Has 5 Comments
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
I am happy it worked, T!
Still facing the issue.
Start directory or shell path field?