找不到com.android.support:appcompat-v7:23.1.1

找不到com.android.support:appcompat-v7:23.1.1,android,android-studio,Android,Android Studio,我签出并在 我在Windows10上安装了Android Studio 4.0.2 我得到的生成错误是: Executing tasks: [:app:assembleDebug] in project D:\Downloads\artoolkit-android-studio-example-master\artoolkit-android-studio-example-master FAILURE: Build failed with an exception. * What went

我签出并在

我在Windows10上安装了Android Studio 4.0.2

我得到的生成错误是:

Executing tasks: [:app:assembleDebug] in project D:\Downloads\artoolkit-android-studio-example-master\artoolkit-android-studio-example-master FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > A problem occurred configuring project ':base'. > Could not resolve all dependencies for configuration ':base:_debugCompile'. > Could not find com.android.support:appcompat-v7:23.1.1. Searched in the following locations: https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.jar Required by: artoolkit-android-studio-example-master:base:unspecified * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 1.346 secs 正在执行项目D:\Downloads\artoolkit android studio示例母版\artoolkit android studio示例母版中的任务:[:app:assembleDebug] 失败:生成失败,出现异常。 *出了什么问题: 配置项目“:app”时出现问题。 >配置项目“:base”时出现问题。 >无法解析配置的所有依赖项:“:base:\u debugCompile”。 >找不到com.android.support:appcompat-v7:23.1.1。 在以下位置搜索: https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.jar 要求: artoolkit android studio示例主机:基:未指定 *尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。 构建失败 总时间:1.346秒 恐怕我不明白怎么了

我不确定23.1.1版需要设置什么。我在我的Android SDK管理器中查看了SDK工具、Android SDK构建工具,23.1.1没有选项。(这就是我应该看的地方吗?)我看到了23.0.1、23.0.2(已安装)、23.0.3。此外,还安装了Android SDK平台23

我是否需要添加自定义站点以获得缺少的23.1.1选项?我不知道怎么做,也不知道它会是什么网站,如果这是需要的话

我怀疑我的SDK或Android Studio可能设置不正确,但我不知道接下来要检查什么

我明白了,但这个问题没有答案


我需要一些帮助来构建这个示例。

该模块的版本(appcompat-v7)不在JCenter存储库中。 当您使用Gradle的旧版本时,必须使用旧方法添加google maven,不允许在Gradle v1.5上使用google()

build.gradle(项目级)

有关更多详细信息,请参阅
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}