Problem with build Gradle 7.2 , still writtencolud not find Gradle 6.1.1

Viewed 1298

I just downloaded gradle6.1.1 to my android studio ,every time i build any project i get the following: Could not find com.android.tools.build:gradle:6.1.1. Searched in the following locations:

1 Answers

build.gradle file must be like that

dependencies {
    classpath 'com.android.tools.build:gradle:7.2.0'

gradle-wrapper.properties file must be like that

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

Related