升级到 AS 0.3.1 后,尝试从 AS 运行应用程序时出现错误:
java.lang.AssertionError
at org.jetbrains.plugins.gradle.config.GradleScriptType$1.configureCommandLine(GradleScriptType.java:221)
at org.jetbrains.plugins.groovy.runner.GroovyScriptRunConfiguration$1.createJavaParameters(GroovyScriptRunConfiguration.java:204)
at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:35)
...
这是 gradle-wrapper.properties:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-all.zip
构建.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.3'
}
}
...
建筑工程毫无怨言。
这是一个已知的错误?我需要做些什么来更新 gradle 插件吗?