Failed to automatically detect binary adb file - Android Studio

I tried to test my application on Android Studio , but I was stuck in

"waiting for AVD to come online..." 

I read the adb reset from Android Device Monitor will do it, and it ... for 1 test, when I restarted my computer the next day, I get not only:

 "waiting for AVD to come online..." 

but also

 "Could not automatically detect an ADB binary." error every time I try testing my app. 

Here is an image

It might be worth mentioning when I did this 1 test, I also got

 "Could not automatically detect an ADB binary." 

but at least it worked.

+12
android avd adb
source share
3 answers

From my experience, this is due to the fact that AVD cannot detect your binary ADB code. When you start AVD, if you enter the settings, this is the symbol "..." on the virtual machine toolbar, then go to the "Settings" section, there should be a parameter "Use detected ADB location", disable it then select the location of your binary adb file. On Linux, you can do this by typing:

 which adb 

Select the location specified in the settings. As soon as you do this, the error will stop appearing.

+5
source share

This error, because adb.exe was not found in the SDK \ platform-tools studio. Perhaps this is caused by sdkmanager when trying to update current packages.

In any case, the easiest way to fix this error is to download the Platform Tools SDK as a zip file from https://developer.android.com/studio/releases/platform-tools.html , unzip it and replace the current tool folder in the folder SDK

0
source share

go to .. \ AppData \ Local \ Android \ Sdk \ platform-tools and reinstall your ADB, I think this happens on ADB 32 on a 64bit system

0
source share

All Articles