I'm Lost And Desperate! Gradle Is Confused About What It Wants; Version 1.8 Or 1.9?
I just upgraded Android studio and now Android Studio complaints about Gradle, saying: You are using Gradle version 1.8, which is not supported. Please use version 1.9. So under
Solution 1:
Switch to the gradle Android plugin version 0.7+
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
Then you should be able to build with gradle version 1.9.
Solution 2:
Make sure all your build.gradle files in the project use gradle 1.9 as dependency
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
Also check your Gradle Wrapper properties file. Its available in your project structure. It must point to gradle 1.9. AFAIK you will get pop up this fix that automatically but just confirm
Solution 3:
Update both the build.gradle dependency as mentioned by keyboardsurfer and pyus13 and the distribution url found in gradle-wrapper.properties
under /gradle/wrapper/
.
Example:
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
Post a Comment for "I'm Lost And Desperate! Gradle Is Confused About What It Wants; Version 1.8 Or 1.9?"