Gradle version 2.2 is required. Current version is 2.10

来源:互联网 发布:姚明职业生涯场均数据 编辑:程序博客网 时间:2024/05/22 06:49

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'...}
2 1