How Update the gradle to 3.4.1in android studio

Downgrade your version com.android.tools.build:gradle:3.4.1. is not found in https://jcenter.bintray.com/com/android/tools/build/gradle/ repository.

Include the below classpath in your respective module.

classpath 'com.android.tools.build:gradle:2.2.3'

Or Download the latest gradle through the below link

https://gradle.org/releases

and include the directory in your project setting.


First of all you should add the dependency in Project's build.gradle:

classpath 'com.android.tools.build:gradle:3.4.2'

And check all repositories groups that they contain google() repository:

repositories {
    jcenter()
    google()
}

After that in gradle-wrapper.properties you should change the distributionUrl:

https\://services.gradle.org/distributions/gradle-5.1.1-all.zip