Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Unable to locate adb within SDK in Android Studio

Does anyone know what this means? When I click the "run" button on my simulator I get this message.

Throwable: Unable to locate adb within SDK

I am running the latest version, 0.8.14.

like image 821
SleepsOnNewspapers Avatar asked Dec 04 '14 19:12

SleepsOnNewspapers


People also ask

Why does it say unable to locate ADB?

As it turns out, the error message appears when Android Studio is not able to locate the ADB.exe file that is located in the platform-tools folder. This can happen due to several reasons including when your antivirus software removes the adb.exe file due to a false alarm.

How do I fix an ADB connection error?

In tools menu,Android-> untick enable adb Integration and Then OPEN widows task manager n manually end process adb.exe This also solved my issue as der were multiple adb.exe running. Show activity on this post. Restart the computer. Now, disconnect the device, connect it, Make sure USB debugging Option is enabled.

Where is ADB Android SDK?

adb is included in the Android SDK Platform-Tools package. You can download this package with the SDK Manager, which installs it at android_sdk /platform-tools/ .


Video Answer


1 Answers

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.

enter image description here enter image description here enter image description here

  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.

enter image description here enter image description here

Hope this helps!

like image 78
Akos K Avatar answered Sep 21 '22 03:09

Akos K