【发布时间】:2013-11-29 02:25:34
【问题描述】:
我使用 android studio 0.2.2 没有问题,但后来我升级到 0.3.6 然后问题就开始了。
我尝试搜索其他问题并发现了许多常见的 gradle 问题,但还没有设法找到可以修复此实例的解决方案。
错误输出
Gradle: A problem occurred configuring project ':ComputerVision'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':ComputerVision:_DebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v6:+.
Required by:
ComputerVisionProject:ComputerVision:unspecified
Gradle 代码
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 19
}
buildTypes {
release {
runProguard true
proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
}
}
productFlavors {
defaultFlavor {
proguardFile 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
}
已安装的软件包
如果你想看剩下的,请告诉我
【问题讨论】:
-
我看到了你的问题。不幸的是,我还没有升级我的 Android Studio。我写的答案是针对旧版本的。我需要检查它,但这需要一段时间。给您带来的不便深表歉意!
标签: android-studio android-gradle-plugin