【发布时间】:2016-03-12 16:33:26
【问题描述】:
请帮助解决此错误,因为这是我的第一个 android 项目! 摇篮同步: 应用插件:'com.android.application'
android {
compileSdkVersion 8
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.interceptor.myapplication"
minSdkVersion 5
targetSdkVersion 8
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:8.0.+'
}
在 Gradle 控制台上,我得到: FAILURE:构建失败并出现异常。
-
出了什么问题: 配置项目 ':app' 时出现问题。
无法解析配置“:app:_debugCompile”的所有依赖项。 找不到任何与 com.android.support:appcompat-v7:8.0.+ 匹配的版本。 不匹配的版本: 24.0.0-alpha1 23.2.1 23.2.0 23.1.1 23.1.0 + 14 更多 在以下位置搜索: https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml https://jcenter.bintray.com/com/android/support/appcompat-v7/ 文件:/D:/Users/INTERCEPTOR/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/maven-metadata.xml 文件:/D:/Users/INTERCEPTOR/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/maven-metadata.xml 文件:/D:/Users/INTERCEPTOR/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/ 要求: 我的应用程序:应用程序:未指定
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
构建失败
【问题讨论】: