Gradle error in Android Studio 0.4.3

I found links to this with the old version, but not the latest. I upgraded Android Studio to 0.4.3 and created a new project. Build failure immediately:

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)

I tried installing JDK 1.7 and installing my JAVA HOME (previously 1.6), but the same error. My 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

Any ideas?

+1
source share
1 answer

You need to make sure that you are using the correct version of the Android Gradle plugin. For Android Studio 0.4.3, this is the 0.8.X series. Define it in build.gradle as:

dependencies {
    classpath 'com.android.tools.build:gradle:0.8.+'
}

build.gradle ; , , , Android Studio.

+2

Source: https://habr.com/ru/post/1527333/


All Articles