Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error "Minimum supported Gradle version is 5.1.1. Current version is 4.4.1" after update android studio

I updated android studio from 3.3 to 3.4 version and after install and do ./gradlew lint I am getting the next error:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

Then I use the next command to get more details:

  ./gradlwe build --warning-mode=all 

And I get the next message:

Failed to apply plugin [id 'com.android.application']

Minimum supported Gradle version is 5.1.1. Current version is 4.4.1. If using the gradle wrapper, try editing the distributionUrl in .gradle/daemon/4.4.1/gradle/wrapper/gradle-wrapper.properties to gradle-5.1.1-all.zip

And when I edited my gradle-wrapper.properties, I see that the changes were already done, I.E. the version of the distributionUrl already was gradle-5.1.1.-all.zip

Any idea that how can resolve this?

like image 843
Tlaloc-ES Avatar asked Apr 21 '19 10:04

Tlaloc-ES


People also ask

How do I upgrade Android Gradle to latest version?

Update Gradle For the best performance, you should use the latest possible version of both Gradle and the plugin. You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or update your Gradle version using the command line.

How do I know which version of Gradle is installed?

Verify Gradle Installation. Now open the command prompt. In the command prompt, enter Gradle -version. It will display the current version of Gradle just installed on the screen.


2 Answers

You could just edit YOUR_APPLICATION_FOLDER/gradle/wrapper/gradle-wrapper.properties and change the last line to: distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip Android Studio will download necessary library.

like image 158
MarkWalczak Avatar answered Sep 24 '22 16:09

MarkWalczak


This was my solution.

My_project   /gradle   /wrapper   /gradle-wrapper.properties  

Modify this line with the Gradle 5.1.1

distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 
like image 31
Álvaro Agüero Avatar answered Sep 21 '22 16:09

Álvaro Agüero