Error:Unable to locate adb within SDK in Android S

2019-01-04 11:46发布

Does anyone know what this means? I'm kind of noobish to Android. When I click the "run" button on my simulator I get this message.

Throwable: Unable to locate adb within SDK

I am running the latest version, 0.8.14.

EDIT: I'm using Android Studio

21条回答
戒情不戒烟
2楼-- · 2019-01-04 12:12

if you have adb problem go to tools->sdk manager -> install missed sdk tools

my problem was solved using these way

查看更多
虎瘦雄心在
3楼-- · 2019-01-04 12:12

Open Task Manager and find service adb.exe after saw those service just end it, and run again

查看更多
聊天终结者
4楼-- · 2019-01-04 12:12

If you are using Android Studio and have AVG virus protection, the adb.exe file might be in the Virus Vault. This was my problem. To fix: Open AVG. Select Options (top right), then Virus Vault. If you see the adb.exe file in there, select it and then click Restore.

查看更多
倾城 Initia
5楼-- · 2019-01-04 12:13

If you are running windows 10 ( may be windows 7 as well ) and Android studio, Chances are that it could be because of windows virtual memory problem. See this unable to get adb version

查看更多
ら.Afraid
6楼-- · 2019-01-04 12:14

In Android Studio, Click on 'Tools' on the top tab bar of android studio

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

there you can clearly see which platform tool is missing , then just install that and your adb will start working properly.

Fully install at-least one Api package (Android Api 23 or 24) .

查看更多
来,给爷笑一个
7楼-- · 2019-01-04 12:15

While all these answer might have been correct in my scenario it didn't work. It all started when i uninstalled 2.* android studio version after getting 3.0rc1. But that screw up things and started getting this error. After that i did followed majority of these steps and none of them worked. While analyzing SDK directory i noticed that i have two platform tools folder. The .backup had adb.exe where as the other one didn't. I just copied the .backup files in the other platform-tool folder and it fixed my issue.

enter image description here

查看更多
登录 后发表回答