今天电脑出问题了,在选择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目录就可以了。
就可以在Project配置中看到选择的版本配置了。