gradle build
的时候提示错误
* 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.10. If using the gradle wrapper, try editing the distributionUrl in /Users/kass/git_repos/RxJava-Android-Samples/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip
issue:https://discuss.gradle.org/t/gradle-thinks-2-10-is-less-than-2-2-when-resolving-plugins/13434
问题在于,老版本的 Android Plugin只接受2.2-2.9
buildscript {
System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true'
...
}