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