Android Studio 3.1.3 Gradle Sync Error. Could Not Download Gradle-Core.jar

Try to put google() as the first repo as below. Don’t put it under jcenter() and mavenCentral() for your existing Android Studio projects.

repositories {
    google() // make this repo as the first one if Android Gradle Plugin is upgraded from 2.x to 3.x. 
    jcenter()
    mavenCentral()
}

For those React Native or CordovaLib projects that are with Android Gradle Plugin lower versions, e.g. 2.2.3, you can try to replace the google() with below, but remember to put it as the first repo selection.

repositories {
    // google()
    maven {
        url "https://maven.google.com"
    }
    jcenter()
}

Clean up all your old .gradle caches and then perform a new Sync.

Leave a Comment