Error:Gradle version 2.2 is required. Current version is 1.12

时间:2021-02-09 17:04:12

异常:

Error:Gradle version 2.2 is required. Current version is 1.12. If using the gradle wrapper, try editing the distributionUrl in E:\AndroidEffects\TestingProject\MaterialDesignSample-master\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip.



解决方法: 打开工程文件--><Project>/gradle/wrapper/gradle-wrapper.properties  

编辑 distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip 

     修改为 distributionUrl=http\://services.gradle.org/distributions/gradle-2.2-all.zip