Error:(24, 11) Failed to resolve: com.android.support:appcompat-v7:8.0.+

Error:(24, 11) Failed to resolve: com.android.support:appcompat-v7:8.0.+

请帮助解决这个错误,因为这是我的第一个 android 项目! Gradle同步: 应用插件:'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 控制台上我得到: 失败:构建失败,出现异常。

构建失败

您应该为 appcompat-v7 依赖项使用正确的版本。

上述依赖到现在的最新稳定版本为:

    compile 'com.android.support:appcompat-v7:23.2.1'

按照上面的方法使用它,并确保你installed/updated之前在SDK管理器中升级到最新版本。