Problem with Gradle6.1.1

Hello All

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:

is there a way anyone can help me… or may be tell me where to save gradle-6.1.1.pom on my device.
Thank you
Samerz

Hi @Samerz,

There are two version involved:

  1. The version of Gradle itself where 6.1.1 is the latest. Easiest way to upgrade that is upgrading the wrapper like this: https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:upgrading_wrapper
  2. The version of the Android Gradle Plugin (AGP) which you set in the build script for the com.android.application plugin. There you could use 3.6.0-beta05, if you want the latest (your build fails, because this one is set to 6.1.1 as well).

Dear Jendrik
i tried to sync project with other version
distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip
and the build gradle was set to
classpath ‘com.android.tools.build:gradle:3.5.3’

Still i get the same errors as below:
Could not find com.android.tools.build:gradle:3.5.3.
Searched in the following locations:

i really don’t know what is the wrong issue here
Thank you
Samerz