错误:无法在以下位置找到带有哈希字符串“android-14"的目标:打开 Android SDK 管理器
我知道在此之前这个问题已经被问过多次,但我正在寻找其他类型的答案.
I know this question has been asked several times before this, but i am looking for some other kind of answer.
我只想运行一个项目,它给了我这个错误.
I just want to run a project, and it gives me this error.
Error:A problem occurred configuring project ':app'.
> failed to find target with hash string 'android-14' in: C:\Users\etc.
<a href="openAndroidSdkManager">Open Android SDK Manager</a>
我查看了我的 Android sdk 管理器,是的.我没有 android 14.
I took a look at my Android sdk manager, and yes. I do not have android 14.
然后我试图找到引用 Andoid 14 的项目部分.但我什么也没找到.
Then I tried to find the part of project which refrences the Andoid 14. But i found nothing.
这是我的清单
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" />
<application android:label="@string/app_name"
android:icon="@drawable/ic_launcher">
那么哪一部分或哪一行真正需要 Android 14?
面对同样的问题,我发现属性compileSkdVersion"在 proguard 中包含对 v.14 的引用.cfg(Grdle 脚本,假设您使用的是 Android Studio 1.4).
Facing the same issue, I have found atribute "compileSkdVersion" which holds the reference to v.14 in proguard.cfg (Graddle Scripts, assuming you are using Android Studio 1.4).
更改为23"(今天最新版本),错误消失了.
Changed to "23" (latest today version), error went gone.
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.android.lifecycle"
minSdkVersion 7
targetSdkVersion 15
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}