Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle version 2.2 is required. Current version is 2.12. If using the gradle wrapper, try editing the distributionUrl in D:\workspace\snowdream\git\gitbook-android\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip #1

Closed
snowdream opened this issue Apr 13, 2016 · 1 comment

Comments

@snowdream
Copy link
Owner

 gradle clean installDebug --info
Starting Build
Compiling settings file 'D:\workspace\snowdream\git\gitbook-android\settings.gradle' using SubsetScriptTransformer.
Compiling settings file 'D:\workspace\snowdream\git\gitbook-android\settings.gradle' using BuildScriptTransformer.
Settings evaluated using settings file 'D:\workspace\snowdream\git\gitbook-android\settings.gradle'.
Projects loaded. Root project using build file 'D:\workspace\snowdream\git\gitbook-android\build.gradle'.
Included projects: [root project 'gitbook-android', project ':app']
Evaluating root project 'gitbook-android' using build file 'D:\workspace\snowdream\git\gitbook-android\build.gradle'.
Compiling build file 'D:\workspace\snowdream\git\gitbook-android\build.gradle' using SubsetScriptTransformer.
Compiling build file 'D:\workspace\snowdream\git\gitbook-android\build.gradle' using BuildScriptTransformer.
Evaluating project ':app' using build file 'D:\workspace\snowdream\git\gitbook-android\app\build.gradle'.
Compiling build file 'D:\workspace\snowdream\git\gitbook-android\app\build.gradle' using SubsetScriptTransformer.
Compiling build file 'D:\workspace\snowdream\git\gitbook-android\app\build.gradle' using BuildScriptTransformer.

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\workspace\snowdream\git\gitbook-android\app\build.gradle' line: 9

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.2 is required. Current version is 2.12. If using the gradle wrapper, try editing the distributionUrl in D:\workspace\snowdream\git\gitbook-android\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 6.846 secs

@snowdream
Copy link
Owner Author

As new release with the fix not available yet, the former walk-around works fine.

buildscript {
System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true'
...
}

See: https://discuss.gradle.org/t/gradle-thinks-2-10-is-less-than-2-2-when-resolving-plugins/13434

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant