Could Not Find Com.android.tools.build:gradle:5.1.1
I have tried all solution i can find online, like adding mavenCentrals and all that. I can find 5.1.1 under .gradle, but it's complaining it does not find any version after 2.3 in
Solution 1:
When you update Android Studio, you may receive a prompt to automatically update the Android Gradle plugin to the latest available version. You can choose to accept the update or manually specify a version based on your project's build requirements.
You should set PROPERclasspath
version.
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
}
Set the Gradle version to 6.1.1
in the gradle-wrapper.properties file.
distributionUrl = https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
Read Android Gradle plugin
.
Plugin version ----> Required Gradle version3.1.0+ ----> 4.4+3.2.0----> 3.2.1 4.6+3.3.0----> 3.3.2 4.10.1+3.4.0+ ----> 5.1.1+4.0.1----> 6.1.1
Post a Comment for "Could Not Find Com.android.tools.build:gradle:5.1.1"