Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

// Top-level build file where you can add configuration options common to all sub-projects/modules.  buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:2.3.0'          // NOTE: Do not place your application dependencies here; they belong         // in the individual module build.gradle files     } }  allprojects {     repositories {         jcenter()     } }  task clean(type: Delete) {     delete rootProject.buildDir } 

and second build.gradle:

apply plugin: 'com.android.application'  android {     compileSdkVersion 25     buildToolsVersion "25.0.0"     defaultConfig {         applicationId "com.tosi.ex"         minSdkVersion 14         targetSdkVersion 25         versionCode 1         versionName "1.0"         multiDexEnabled true         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"     }     buildTypes {         release {             minifyEnabled false             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'         }     }     sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } } } repositories {     mavenCentral() }  dependencies {     compile fileTree(dir: 'libs', include: ['*.jar'])     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {         exclude group: 'com.android.support', module: 'support-annotations'     })     compile 'com.android.support:appcompat-v7:25.2.1'     compile 'com.android.support:design:25.2.1'     compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'     compile 'com.android.support:support-v4:25.2.1'     compile 'com.android.support:mediarouter-v7:25.2.1'     compile 'com.google.android.gms:play-services:10.2.1'     compile 'com.android.support:cardview-v7:25.2.1'     compile 'com.squareup.picasso:picasso:2.5.2'     compile 'uk.co.chrisjenx:calligraphy:2.2.0'     testCompile 'junit:junit:4.12' } 

gradle-wrapper.properties:

#Tue Mar 28 17:26:02 CEST 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-3.2-all.zip 

When I changed properties distributionUrl to 3.3-all.zip it stuck in refreshing I don't know what to do with this problem. Please help me Thank you very much

like image 825
tomassilny Avatar asked Mar 28 '17 18:03

tomassilny


People also ask

Does Gradle support JDK 17?

As of Gradle 7.3, both running Gradle itself and building JVM projects with Java 17 is fully supported.

What is the minimum supported Gradle version for Android Studio?

android - Gradle error: Minimum supported Gradle version is 3.3. Current version is 3.2 - Stack Overflow Gradle error: Minimum supported Gradle version is 3.3. Current version is 3.2 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?

Which Gradle plugin should I use for my Gradle build tool?

It is recommended to always use the latest version of the Gradle Enterprise Gradle plugin that is compatible with your Gradle Build Tool version and installed Gradle Enterprise version, as it will produce the most insightful build scans.

What is a major version change in Gradle plugin?

Major or minor version updates to the Gradle Enterprise Gradle plugin indicate a compatibility change with Gradle Enterprise (e.g. 3.0 → 3.1 or 3.1 → 4.0). Patch number only updates (e.g. 3.0 → 3.0.1) do not affect compatibility.

What is the latest version of Gradle enterprise?

This document details the version compatibility of components of Gradle Enterprise with other related components. Latest version: 3.8.1 (2022-01-12)


2 Answers

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 
like image 97
Sneh Pandya Avatar answered Sep 29 '22 10:09

Sneh Pandya


you need to download the latest version from https://gradle.org/releases after that go to file/project structure/project and put the new version in gradle version

like image 42
Ahmed Abd Elgwad Avatar answered Sep 29 '22 09:09

Ahmed Abd Elgwad