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条回答
做自己的国王
2楼-- · 2020-03-31 05:05

Adb.exe is missing in the studio path. I just added the adb.exe file into the path and it solved my issue. I dont know whether it will work on all situations. But it has worked for me.

Thanks for all your directives

查看更多
狗以群分
3楼-- · 2020-03-31 05:11

I have been into the same problem a few hours ago, but this is how i have been able to resolve it.

Download ADB from this Link: http://adbshell.com/downloads Choose out this option: ADB Kits (525 KB)(adb.exe AdbWinApi.dll AdbWinUsbApi.dll)

Extract all the 3 files you have downloaded from the extract. Then paste the 3files in your SDK=>platform-tools folder. I that exactly worked for me. All the best.

查看更多
Juvenile、少年°
4楼-- · 2020-03-31 05:12

I was using Avast and found out that the adb.exe was in the virus chest and i simply restored it as an exclusion, now it worked perfectly. Don't keep the Android Studio outdated, Thanks Avast Virus Chest


Couple of updates to this working solution

1) Virus Chest Image enter image description here

2) Restore adb from the virus chest & also add android-studio folder under exclusions to avoid the issue in future enter image description here

查看更多
乱世女痞
5楼-- · 2020-03-31 05:13

I was also facing same problem, but I resolved it I am using android studio 2.3 open command prompt and set the path to platform tools i.e. "C:\Users\AppData\Local\Android\sdk\platform-tools"

then write adb.exe as shown

C:\Users\sandeep\AppData\Local\Android\sdk\platform-tools>adb.exe

then restart your studio It will working fine

查看更多
走好不送
6楼-- · 2020-03-31 05:20

open Studio settings-->System settings --> Android SDK --> select SDK tool tab -->> select "Android SDK platform tool" and install

查看更多
地球回转人心会变
7楼-- · 2020-03-31 05:28

I was also facing same problem, but I resolved it I am using android studio 2.3 open command prompt and set the path to platform tools i.e. "C:\Users\\AppData\Local\Android\sdk\platform-tools"

then write adb.exe as shown

C:\Users\sandeep\AppData\Local\Android\sdk\platform-tools>adb.exe

then restart your studio It will working fine.

查看更多
登录 后发表回答