无法自动检测到ADB二进制文件-Android Studio [英] Could not automatically detect an ADB binary - Android Studio

查看:1912
本文介绍了无法自动检测到ADB二进制文件-Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 Android Studio 上测试我的应用,但我被困在

 让AVD上线... 

我读过重置,将其解压缩并替换为SDK文件夹中的当前platform-tools文件夹。


I tried testing my app on Android Studio but I was getting stuck at

"waiting for AVD to come online..."  

I've read resetting from Android Device Monitor will do it, and it did...
for 1 test, when I've restarted my PC the next day I'm getting 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.

Maybe worth mentioning when I did that 1 test, I was also getting the

"Could not automatically detect an ADB binary." 

error, but at least it worked.

解决方案

This error because android studio did not find adb.exe in SDK\platform-tools folder. Maybe this is caused by sdkmanager while trying to update current packages.

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

这篇关于无法自动检测到ADB二进制文件-Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆