美文网首页
Android Studio出现The selected dir

Android Studio出现The selected dir

作者: None_Ling | 来源:发表于2016-07-26 13:50 被阅读2936次

今天电脑出问题了,在选择SDK的时候只能选择5.0的SDK,但是明明/sdk/platforms下有14的SDK,但是一选择就会出现如下图所示错误

错误提示

后来在StackOverFlow上查原因,原贴链接为:
http://stackoverflow.com/questions/16606301/android-studio-selected-directory-is-not-valid-home-for-android-sdk

I was trying to select
C:\Program Files (x86)\Android\android-sdk\platforms\android-XX

But what I actually had to do was to select android-sdk
folder.
C:\Program Files (x86)\Android\android-sdk

Then I was able to choose the API I wanted from a list of APIs that would show up.

最后也就是在导入的时候不选择/sdk/platform/具体的某个版本,而是选择整个android-sdk目录就可以了。

选择整个SDK目录

就可以在Project配置中看到选择的版本配置了。

相关文章

网友评论

      本文标题:Android Studio出现The selected dir

      本文链接:https://www.haomeiwen.com/subject/cimnjttx.html