How to solve unable to locate adb(IllegalArgumentE

2020-03-31 04:36发布

I am not able to run my project using android studio after an update from 2.2 to 2.3. I always getting an error like "unable to locate adb" while i try to run my project.

Shoot me a proper solution to fix this. I tried many ways but i couldn't solve this.

标签: android adb
9条回答
Evening l夕情丶
2楼-- · 2020-03-31 05:29

(I am using Android Studio 3.0.1)

  1. I downloaded "SDK Platform-Tools" from
    https://developer.android.com/studio/releases/platform-tools
  2. Copied 'adb.exe' to C:\Users\user\AppData\Local\Android\Sdk\platform-tools.
  3. Then I got no errors when running the app.

  4. I also added C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe to the exception list of my anti-virus tool

查看更多
Rolldiameter
3楼-- · 2020-03-31 05:29

Goto inside the Tools:

Tools --> Android --> SDK Manager --> Launch Standalone Sdk manager

Thre you can see which platform tools are missing. Just install that and your adb will works.

查看更多
等我变得足够好
4楼-- · 2020-03-31 05:32

Also had this error. It turns out my anti-virus had quarantined the adb. So i simply went to the virus chest and added adb to the list of antivirus exclusions. It worked perfectly after that.

查看更多
登录 后发表回答