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

前端 未结 3 1151
面向向阳花
面向向阳花 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:32

    Error: "Gradle version 1.10 is required. Current version is 2.0"

    Why it show: Attempting to build an Android project that requires 1.10 version of Gradle while using 2.0 version of it as native.

    What should be done to resolve this problem: Updating the gradle version within build.gradle file

    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.2+'
    }
    

    replacing it with

    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.+'
    }
    

提交回复
热议问题