无法在Android Studio中升级gradle版本

时间:2016-08-01 05:35:36

标签: android gradle android-gradle

我正在使用带有gradle当前版本的Android Studio 2.1.1 - 2.10。

我正在尝试将gradle版本升级到2.14.1,我已完成以下操作:

gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-all.zip

build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.12'

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

同步时,我收到以下错误:

Error:Could not find com.android.tools.build:gradle:2.14.1.
Searched in the following locations:
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/tools/build/gradle/2.14.1/gradle-2.14.1.pom
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/tools/build/gradle/2.14.1/gradle-2.14.1.jar
    https://jcenter.bintray.com/com/android/tools/build/gradle/2.14.1/gradle-2.14.1.pom
    https://jcenter.bintray.com/com/android/tools/build/gradle/2.14.1/gradle-2.14.1.jar
Required by:
    :MultiPanePlayer:unspecified

我的项目级设置有以下选项"使用默认的gradle包装器(推荐)"选择。我错过了什么吗?

0 个答案:

没有答案