android studio 平台工具缺少 adb.exe [英] android studio platform-tools missing adb.exe
问题描述
今天,我在启动 Android Stodio 时点击了一些更新.我忘记是什么了.然后,当出现错误时我运行一些代码晚上 8:34 IllegalArgumentException:无法找到 adb"
Today, I clicked some update when I launch Android Stodio. I forgot what it is. Then, I run some code when there is a error "8:34 PM IllegalArgumentException: Unable to locate adb"
然后,我用谷歌搜索了几个小时,仍然无法解决我的问题.我发现我的平台工具文件夹下没有adb.exe".
Then, I google for few hours and still cannot solve my problem. And I found that there is no "adb.exe" under my platform-tools folder.
有人可以帮忙吗?
我的操作系统是 Window 10.我试过卸载 Android Studio 并重新安装.它没有帮助.
my os is Window 10. I have tried uninstall Android Studio and install it back. It doesn't help.
编辑 1:重新安装平台工具后,我取回了 adb.exe.但是,我再次运行我的程序,它执行了ADB 初始化",我的 adb.exe 文件再次丢失.>
Edit 1: After I re-install the platform-tools, I get back the adb.exe.But, I run my program again, it does the "ADB initialization", my adb.exe file lose again.
推荐答案
问题解决了.我遇到的问题是我将 SDK 平台工具升级到 25.0.6.但是我的 SDK Build-Tools 是 25.0.3.(尚未提供 25.0.6)我猜版本不匹配导致此问题.
The problem is solved. The issue I have is I upgraded the SDK platform-tools to 25.0.6. But My SDK Build-Tools is 25.0.3. (25.0.6 is not yet provided) I guess the version did not match which cause this problem.
我将我的 SDK 平台工具降级到 25.0.3,它照常工作.
I downgrade my SDK platform-tools to 25.0.3 and it is working as usual.
这篇关于android studio 平台工具缺少 adb.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!