我在舊版本中發現了對此的引用,但未找到最新版本。我將Android Studio更新爲0.4.3並創建了一個新項目。構建與下面立即失敗:Android Studio中的Gradle錯誤0.4.3
Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.
com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.10-all.zip'.
at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:185)
我已經嘗試安裝JDK 1.7和設置我的JAVA HOME到(之前爲1.6),但會發生同樣的錯誤。我的GradleWrapper.properties是:
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
任何想法?
您是否在build.gradle中指定了插件的v0.8? –
http://stackoverflow.com/questions/21330021/gradle-error-when-pressing-run-app-android-studio/21330597#21330597 – pyus13
@ScottBarta謝謝,它已被改爲0.10(或許我) - 改回到0.8。現在可以從運行gradlew的命令行構建,但是使得Android Studio中的項目仍然失敗......雖然進度! – James