我正在使用带有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包装器(推荐)"选择。我错过了什么吗?