我尝试从0.8.13升级到AS 0.9.1,这需要从gradle 1.12升级到2.1,并且gradle插件从0.12.2升级到0.14.0。
我的应用程序使用命令行编译,例如
./ gradlew assembleQaDebug但是每当我尝试在IDE中执行任何操作时都会失败。
“消息”窗格显示: Gradle' BespokeOffers'项目刷新失败 错误:无法使用Gradle分发' https://services.gradle.org/distributions/gradle-2.1-bin.zip'。
运行构建操作想法日志有一个怪物堆栈跟踪,其突出点似乎是
2014-11-05 12:12:02,972 [ 774138] INFO - .BaseProjectImportErrorHandler - Failed to import Gradle project at '/Users/agf/Development/bespoke-offers-android/BespokeOffers'
org.gradle.tooling.GradleConnectionException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.1-bin.zip'.
和
Caused by: java.lang.AbstractMethodError
at com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider(SourceProviderImpl.java:56)