【发布时间】:2016-06-17 19:10:23
【问题描述】:
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
}
}
【问题讨论】:
-
我试着照他们说的做,但问题还是一样。