Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Could not automatically detect an ADB binary. Some emulator functionality will not work until a custom path to ADB is added in the extended…

Tags:

android

adb

I'm getting an error message in Android Studio with adb:

Could not automatically detect an ADB binary. Some emulator functionality will not work until a custom path to ADB is added in the extended settings page.

Screenshot showing the error message

Note that I have adb as part of the development tools and have set variable path, have tested in cmd and it's functional.

What am I missing here? Do I have to set some path to adb in Android Studio as well?

I'm using Android Studio 2.3.3.

like image 798
Ayyaz Avatar asked Sep 19 '17 02:09

Ayyaz


People also ask

Could not automatically detect an ADB binary some emulator functionality will not work?

Open Android Studio Go to: Menu -> Tools -> SDK Manager Click on SDK Tools Tab, Now Check on - "Android SDK Platform-Tools" Click on OK to install. Now you should see "Virtual Device" under Device Connector (just next to build icon) Run your App and it should start in Native M1 Android Emulator. Save this answer.

Where can I find extended controls in Android Studio?

If the emulator is embedded in Android Studio, click on Snapshots in the toolbar. If the emulator is in a separate window, open the Extended controls window. In the Snapshots category of controls, navigate to the Settings tab.

Where can I find use detected ADB location in Android Studio?

Firstly check if the adb is present in the SDK folder. For this, open C:\Users\Username\AppData\Local\Android\Sdk\platform-tools and check if adb.exe is present.


1 Answers

that error happens because your anti-virus moved the adb.exe to the vault and block it, so you need to give that file an exception that it is not a virus, if that didn't fix it you may need to uninstall the SDK tools and reinstall it again to work.

open the SDK manager in the Android Studio (a button somewhere in the top menu, android logo with a down arrow), switch to the SDK tools tab and select/install the Android SDK Platform-tools.

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".

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.

Hope this helps!

like image 52
Ridha Rezzag Avatar answered Sep 19 '22 03:09

Ridha Rezzag