Error:Failed to resolve: com.android.support:appcompat-v7:23.2.0
这是我尝试编译 Android 应用程序时遇到的错误。我查看了有关此问题的许多问题,并尝试更新我的 SDK,重新打开 Android Studio 并更改为: compile (com.android.support:appcompat-v7:+)
但没有任何效果,Android Studio仍然提示他无法解决。有人知道为什么会发生吗?这是我的全部 Gradle 文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
lintOptions {
abortOnError false
}
defaultConfig {
applicationId "com...."
minSdkVersion 16
targetSdkVersion 23
versionCode 35
versionName "1.5"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.android.support:cardview-v7:23.2.0'
compile 'com.android.support:design:23.2.0'
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
compile 'com.android.support:appcompat-v7:23.2.0'
compile project(':library')
compile 'net.steamcrafted:materialiconlib:1.0.8'
compile 'com.pes.materialcolorpicker:library:1.0.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.easing:library:1.0.1@aar'
compile 'com.daimajia.androidanimations:library:1.1.3@aar'
compile('de.psdev.licensesdialog:licensesdialog:1.8.0')
compile 'com.github.paolorotolo:appintro:3.4.0'
compile 'com.github.deano2390:MaterialShowcaseView:1.0.6'
compile "com.oneskyapp:screenshot:0.7.4"
compile('com.mikepenz:materialdrawer:4.6.4@aar') {
transitive = true
}
}
最佳答案
关于java - 无法解决 Android 依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35789454/