码迷,mamicode.com
首页 > 移动开发 > 详细

Error:Unable to locate adb within SDK in Android Studio

时间:2021-01-06 11:54:51      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:over   hat   users   appdata   efault   targe   navigate   normal   overflow   

https://stackoverflow.com/questions/27301960/errorunable-to-locate-adb-within-sdk-in-android-studio

注意在File->project structure中选择sdk等

 

Finally after several hours of investigation I think I have another solution for everyone having issues with AVD Manager "Unable to locate adb".

I know we have the setting for the SDK in File -> Settings -> Appearance & Behavior -> System Settings -> Android SDK. This it seems is not enough! It appears that Android Studio (at least the new version 4) does not give projects a default SDK, despite the above setting.

So, you also (for each project) need to go to File -> Project Structure -> Project Settings -> Project, and select the Project SDK, which is set to [No SDK] by default.

If there‘s nothing in the drop-down box, then select New, select Android SDK, and navigate to your Android SDK location (normally C:\Users[username]\AppData\Local\Android\Sdk on Windows). You will then be able to select the Android API xx Platform. You now should not get this annoying adb error.

HTH

Error:Unable to locate adb within SDK in Android Studio

标签:over   hat   users   appdata   efault   targe   navigate   normal   overflow   

原文地址:https://www.cnblogs.com/imoon22/p/14224560.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!