Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
501 views
in Technique[技术] by (71.8m points)

android studio platform-tools missing adb.exe

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"

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.

Can someone help?

my os is Window 10. I have tried uninstall Android Studio and install it back. It doesn't help.

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I am writing the solution which worked for me:

  • go to SDK Platform Tools;
  • download SDK Platform-Tools for Windows;
  • extract zip file and copy to AppDataLocalAndroidsdkplatform-tools.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...