question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find com.android.tools.build:gradle:3.2.1. after upgrading to Android Studio 3.3

See original GitHub issue

I am getting following error after updating AS to 3.3.

ERROR: Could not find com.android.tools.build:gradle:3.2.1.
Searched in the following locations:
  - file:/home/cube/Development/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
  - file:/home/cube/Development/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
  - https://dl.bintray.com/android/android-tools/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
  - https://dl.bintray.com/android/android-tools/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
  - https://maven.fabric.io/public/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
  - https://maven.fabric.io/public/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
  - https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom
  - https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.jar
Required by:
    project :app > com.apollographql.apollo:apollo-gradle-plugin:1.0.0-alpha4
Open File

My main gradle file is:

buildscript {
    ext.kotlin_version = '1.3.11'
    repositories {
        maven { url "https://dl.bintray.com/android/android-tools" }
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:4.2.0' // google-services plugin
    }
}

the app gradle file is:

buildscript {
    repositories {

        /*maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
*/
        maven { url "https://dl.bintray.com/android/android-tools" }
        maven {
            url 'https://maven.fabric.io/public'
        }
        jcenter()

    }
    dependencies {
        classpath 'com.apollographql.apollo:apollo-gradle-plugin:1.0.0-alpha4'

        // Add dependency
        classpath 'io.fabric.tools:gradle:1.27.0'
    }
}

repositories {
    jcenter()
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

20reactions
ivansalacceocommented, Feb 24, 2019

Try adding google repository in your app gradle file

buildscript {
    repositories {
         ...
         google()
    }
13reactions
hzandicommented, Feb 26, 2019

clear gradle cache

rm -rf $HOME/.gradle/caches/ and resync to download all dependencies

Go Settings/Gradle/Android Studio. Then check “Enable embedded Maven repository”. And you’re good to go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error:Could not find com.android.tools.build:gradle:3.3. Issue ...
Inside buildscript add google() then open terminal write command-- gradlew build and press enter. enter image description here
Read more >
Could not find com.android.tools.build:gradle:3.2.1 ... - GitHub
I am getting following error after updating AS to 3.3. ERROR: Could not find com.android.tools.build:gradle:3.2.1. Searched in the following ...
Read more >
Trying to get 3.3 working android studio and other bugs
Error:Could not find com.android.tools.build:gradle:3.3.0. Searched in the following locations: file:/Applications/Android ...
Read more >
No cached version of com.android.tools.build:gradle:3.3 ...
I did download gradle-3.3-all.zip from here, and extract that to C:\Program ... Android Studio: Could not find com.android.tools.build:gradle:2.0.0-alpha2.
Read more >
Android Gradle plugin release notes - Android Developers
For more information about the Gradle build system, see the Gradle user guide. Update the Android Gradle plugin. When you update Android Studio,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found