0
我有這樣的錯誤:錯誤:(30,13)無法解析:庫/ com.android.support:程序兼容性-V7:22.2.1
Error:(30, 13) Failed to resolve: libs/com.android.support:appcompat-v7:22.2.1
這裏我build.gradle
文件:
apply plugin: `com.android.application`
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.guestadmin.myapplication"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.0'
testCompile 'junit:junit:4.12'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'libs/com.android.support:appcompat-v7:22.2.1'
}
任何人都可以告訴我爲什麼我得到這個30-13錯誤plz –
您是否檢查過appcompat.v7:22.2.1庫是否被正確引用?也許你的版本已經改變或者找不到?如果您仍然需要,我會再次刪除參考並將其重新添加。 – Lepidopteron