Translate this page

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

person using macbook pro on person s lap

Fix android.content.Intent.migrateExtraStreamToClipData(android.content.Context)’ on a null object reference

Here is how to Fix Android Studio Error Attempt to invoke virtual method ‘boolean android.content.Intent.migrateExtraStreamToClipData(android.content.Context)’ on a null object reference This error is caused by a number…

Android Spinner onItemSelected Listener Example

Spinner is an android UI element; it provides a drop-down List where you can choose an item from the list. You will need a listener to catch…

person in gray shirt holding a small paper with texts

Get Current Month Name in Java Android

The code below can be used to get the name of current month, for example, January, February, March etc. Just call this method and it will return…

The future of android developers is not good

Are you an android developer or looking to be an android developer? You should read this Myself is zid, I’m an android developer and been in this…

How to Auto Scroll RecyclerView Android Java

If you want to scroll your recyclerview automatically, you can use the below code. Just add this code after setting your recyclerview adapter

Download Android Earning App Source Code

Android Earning App Source Code Download for Android studio 2023 This is cashJungle earning app developed by us. It has amazing jungle theme as its name suggests….

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. Required fields are marked *