"Unable to Locate Adb" Using Android Studio

Android-studio: Unable to locate adb

I started getting this error after updating Android Studio from version 3.6.3 to 4.0. It didn't stop the emulator working, but it was vaguely annoying.

I checked that adb.exe was in the folder C:\Users[username]\AppData\Local\Android\Sdk\platform-tools. I also ran it in a command-line to prove that the exe worked OK.

Finally after a bit of a struggle I found a solution:

Start the SDK Manager, File menu -> Settings -> Appearance & Behavior -> System Settings -> Android SDK, SDK Tools tab (Or click the cube with blue down arrow icon in the toolbar).

Firstly I updated the Android SDK Platform-Tools (now v30.0.2). This didn't fix the problem. I also tried manually deleting the platform tools folder and reinstalling.

Eventually I decided to click the "Edit" link next to the "Android SDK Location" box. This opens a new dialog for SDK Components Setup. How well hidden is that?!?! I had always assumed it was to edit the SDK path!

You should now see that Android SDK - (installed) has a tick in the checkbox, as do any SDK Platforms you have. Click on the Next button and your SDK will update.
Problem solved.

HTH

Error:Unable to locate adb within SDK in Android Studio

The ADB is now located in the Android SDK platform-tools.

  1. Check your [sdk directory]/platform-tools directory and if it does not exist, then open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), switch to SDK tools tab and and select/install the Android SDK Platform-tools.

Sample Image
Sample Image
Sample Image


  1. Alternatively, you can try the standalone SDK Manager: Open the SDK manager and you should see a "Launch Standalone SDK manager" link somewhere at the bottom of the settings window. Click and open the standalone SDK manager, then install/update the

"Tools > Android SDK platform tools".


  1. If the above does not solve the problem, try reinstalling the tools: open the "Standalone SDK manager" and uninstall the Android SDK platform-tools, delete the [your sdk directory]/platform-tools directory completely and install it again using the SDK manager.

  2. Check your antivirus chest. Sometimes the Antivirus program thinks adb.exe is a virus. If you find it there please restore the file and it will start working. You can also put adb.exe as a safe file in you Antivirus program.

Sample Image
Sample Image

Hope this helps!

Unable to locate adb in Android Studio

It was very dumb of me to realize that I hadn't actually connected my mobile phone to my PC the whole time. I kept using the USB connection to charge rather than transfer files, as a result of which my USB debugging was never really enabled.

It's working fine now. Thank you for your help everyone.

AVD Manager: unable to locate adb in android studio

I struggled with this problem for a few days now and the number 1 suggestion I found is:

  1. review your environment variables (such as %ANDROID_HOME%);
  2. remove the platform-tools dir inside %ANDROID_HOME%, adb.exe is either corrupted or missing;
  3. reinstall Android SDK and check for adb.exe inside %ANDROID_HOME%\platform-tools;
  4. emulate a new device (you are a wizard Harry!);

Well, this didn't work for me but apparently worked for some people, especially for avast users (apparently it corrupts adb.exe 'cause it believes it to be malware).

What worked for me was:

  1. In Android Studio go to File > Project Structure (Ctrl + Alt + Shift + S in windows);
  2. Under Project Settings>Project>Project SDK must have a valid Android SDK selected;
  3. emulate a new device (you are a wizard SadSack963!);


Related Topics



Leave a reply



Submit