Android Studio says to use Gradle 1.10 - but new version is 1.12?

前端 未结 3 1172
面向向阳花
面向向阳花 2021-01-12 04:31

The error:

The project is using an unsupported version of Gradle.  Please use version 1.10.


My `gradle.build` file says this:

dependencies {
      classpa         


        
3条回答
  •  渐次进展
    2021-01-12 05:23

    If you want to change the gradle-wrapper to a lower version you have to change distributionUrl to

    distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
    

    and then rerun the wrapper task. If this isn't enough just delete the folders .gradle and gradle and the files gradlew and gradlew.bat. The rerun wrapper and he downloads gralde 1.10

    Since gradle had some major api changes from version 1.10 and 1.12 you can not build any project with a higher version then the plugins are build with. So if the android plugin is build with gradle 1.10 you have to use the same version

提交回复
热议问题