Gradle error: Minimum supported Gradle version is 3.3. Current version is 3.2

后端 未结 17 1846
萌比男神i
萌比男神i 2020-11-27 04:26

When I today update Android Studio it write: Minimum supported Gradle version is 3.3. Current version is 3.2 how can I solve this problem?

Here is my build.gradle

相关标签:
17条回答
  • 2020-11-27 04:58

    Make sure you are using default gradle wrapper in Open File > Settings > Build,Execution,Deployment > Build Tools > Gradle.

    0 讨论(0)
  • 2020-11-27 04:58

    Error Message: Gradle sync failed: Minimum supported Gradle version is 4.9. Current version is 4.1-milestone-1. If using the gradle wrapper, try editing the distributionUrl in SampleProj/app/gradle/wrapper/gradle-wrapper.properties to gradle-4.9-all.zip

    I am using Android studio IDE version 3.2 beta 2.

    Solution: When we open gradle-wrapper.properties file in IDE it shows correct distributionUrl. but originally it has not been updated. So change the distributionUrl property manually.

    Example : open a gradle-wrapper.properties file in notepad or any other editor. /Project/app/gradle/wrapper/gradle-wrapper.properties and change distributionUrl property to like this

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
    
    0 讨论(0)
  • 2020-11-27 04:58

    First of all you need to download the file from here https://gradle.org/releases

    unzip the file and copy folder something like this gradle-3.3(if version is 3.3) and past it to C:\Android\Android Studio\gradle

    Now open the Android Studio and from the left top corner Open File > Settings > Build,Execution,Deployment > Gradle

    Now give the the path of folder gradle-3.3 in Gradle Home

    0 讨论(0)
  • 2020-11-27 04:59

    if you have lower version and getting problem importing project with high gradle version and want to run the project without updating gradle than

    open your gradle file(Project) and do the small change

      dependencies {
               /*Higher Gradle version*/
    //        classpath 'com.android.tools.build:gradle:3.0.0-alpha4'
    
            /*Add this line and remove the Higher one*/
            classpath 'com.android.tools.build:gradle:2.3.3'
        }
    

    [2.3.3 is stand for your gradle version]

    in your case change version to 3.2 or 3.2.0 something like that

    0 讨论(0)
  • 2020-11-27 05:00

    open the gradlew file with android studio, everything will be downloaded

    0 讨论(0)
  • 2020-11-27 05:01

    I was facing the same issue what I did opened project folder and on search option searched for gradle-wrapper.properties and edited file to updated version

    0 讨论(0)
提交回复
热议问题