Looking for help with Andriod Studio / Gradle build problems

Hi All,
I try’n to get back up to speed on developing Android apps and need some help because it’s been about 6 years and the tools have changed alot since I basically understood them.

I imported a project that I spent a lot time learning about Android development and it gets these errors that Googling just doesn’t give a straight forward answer to. Here’s the Gradle output:

10:55 AM IDE and Plugin Updates: Android Studio is ready to update.

10:55 AM Gradle sync started

10:57 AM Gradle sync failed: Could not find com.android.tools.build:gradle:5.6.4.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.jar
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.jar
- https://maven.google.com/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.pom
- https://maven.google.com/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.jar
- https://plugins.gradle.org/m2/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.4/gradle-5.6.4.jar
Required by:
project :
Consult IDE log for more details (Help… (show balloon)

Check out these docs; https://developer.android.com/studio/releases/gradle-plugin (specifically the “update gradle” section).

I think com.android.tools.build:gradle actually refers to the “Android Gradle plugin” (and not gradle itself). There isn’t a plugin version 5.6.4. According to the linked table, for Gradle 5.6.4 the corresponding plugin version should actually be 3.6.0+.

Look closely at your top level build.gradle. I’m guessing the wrong plugin version is specified there… It needs to look something like…

buildscript {
    repositories {
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.0'
1 Like

Really bro? It was something that stupid!!! :heart_eyes:

12:32 PM Gradle sync started

12:35 PM Plugin Update Recommended: Android Gradle Plugin is ready to update.

12:35 PM Gradle sync finished in 3 m 10 s 528 ms

12:35 PM * daemon not running; starting now at tcp:5037

12:35 PM * daemon started successfully

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.