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

后端 未结 17 1847
萌比男神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 05:03
    • changed distrubutionUrl from 4.1 to 4.4

    • changed build gradle version to 3.1.1 under project/android

    works for me.

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

    Open gradle-wrapper.properties

    Change the version there on distributionUrl line

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

    I changes only two points

    Obviously they were according to the version of the versions that it has, otherwise they would have to download them

    • buil.gradle(Project)

      dependencies {
             classpath 'com.android.toolsg.build:gradle:2.3.2' 
             ..
      }
      
    • gradle.wrapper.properties

      ...
      distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip

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

    For Android Studion version 3.3.2

    1) I updated the gradle distribution URL to distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip in gradle-wrapper.properties file

    2) Within the top-level build.gradle file updated the gradle plugin to version 3.3.2

    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
        classpath 'com.google.gms:google-services:4.2.0'
    }
    
    0 讨论(0)
  • 2020-11-27 05:09

    Since this is the first result of google this error, I want to remind that simply click the bottom window error message blue link "Fix Gradle wrapper and re-import project Gradle settings" will auto fix for you now.

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

    Updated Answer: For Android Studio 3.1 & above

    For Android Studio 3.1 & above, the distributionUrl has been updated to version 4.6 from version 4.4. Your gradle-wrapper.properties should look like this:

    #DATE
    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
    

    Updated Answer:

    For Android Studio 3.0 & above, the distributionUrl has been updated to version 4.1 from version 3.3. Your gradle-wrapper.properties should look like this:

    #DATE
    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    

    Original Answer:

    #DATE
    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
    
    0 讨论(0)
提交回复
热议问题