无法更新到Android Studio的摇篮1.4插件 [英] Can't update to Android Studio gradle 1.4 plugin
本文介绍了无法更新到Android Studio的摇篮1.4插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的 build.gradle
我:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.4.+'
}
}
不过我收到:
However I'm getting:
Error:Could not find com.android.tools.build:gradle:1.4.+.
Searched in the following locations:
file:/C:/AndroidStudio/gradle/m2repository/com/android/tools/build/gradle/1.4.1/gradle-1.4.1.pom
file:/C:/AndroidStudio/gradle/m2repository/com/android/tools/build/gradle/1.4.1/gradle-1.4.1.jar
https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.4.1/gradle-1.4.1.pom
https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.4.1/gradle-1.4.1.jar
Required by:
:xxx:unspecified
怎么办?
推荐答案
这是因为摇篮插件Android版 1.4。+ 不存在(目前)的中央Maven
It happens because the gradle plugin for android 1.4.+ doesn't exist (currently) in central maven.
您可以检查<一href="http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.android.tools.build%22%20AND%20a%3A%22gradle%22">here该版本可在中央Maven的完整列表。
使用最后一个稳定版:
classpath 'com.android.tools.build:gradle:1.3.1'
如果你想使用测试版您必须使用 jcenter 和
If you want to use the beta version you have to use jcenter and
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.4.0-beta6'
}
}
下面的 jcenter完整列表。
修改2015年3月11号
同时在测试版插件1.5.x的仅在jcenter。
EDIT 03/11/2015
Also the beta plugin 1.5.x is only on jcenter.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0-beta1'
}
}
这篇关于无法更新到Android Studio的摇篮1.4插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文