I want to Gradle 1.12. I updated my “gradle-wrapper.properties” like follow:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http://services.gradle.org/distributions/gradle-1.12-all.zip
Then I ran “gradlew --info”, after the Gradle 1.12. is donwloaded, I got the following error while building:
./gradlew --info
Starting Build
Settings evaluated using settings file ‘C:\Users\shend\IdeaProjects\MyApplication2\settings.gradle’.
Projects loaded. Root project using build file ‘C:\Users\shend\IdeaProjects\MyApplication2\build.gradle’.
Included projects: [root project ‘MyApplication2’, project ‘:app’]
Evaluating root project ‘MyApplication2’ using build file ‘C:\Users\shend\IdeaProjects\MyApplication2\build.gradle’.
Compiling build file ‘C:\Users\shend\IdeaProjects\MyApplication2\build.gradle’ using StatementExtractingScriptTransformer.
Compiling build file ‘C:\Users\shend\IdeaProjects\MyApplication2\build.gradle’ using BuildScriptTransformer.
Evaluating project ‘:app’ using build file ‘C:\Users\shend\IdeaProjects\MyApplication2\app\build.gradle’.
FAILURE: Build failed with an exception.
- Where:
Build file ‘C:\Users\shend\IdeaProjects\MyApplication2\app\build.gradle’ line: 14
- What went wrong:
A problem occurred evaluating project ‘:app’.
Gradle version 1.10 is required. Current version is 1.12. If using the gradle wrapper, try editing the distributionUrl in C:\Users\shend\IdeaProjects\MyApplication2\gradle\wrapper\gradle-wrapper.properties to gradle-1.10-all.zip
- Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
My build.gradle file looks like:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘com.android.tools.build:gradle:0.9.+’
}
}
allprojects {
repositories {
mavenCentral()
}
}