AS : Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.

I updated the grade today and suddenly popped out:

Error:Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.

Solution:

Added mavenCentral() to the buildscript and allprojects of the project’s build.gradle 

buildscript {
    
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenCentral()
        google()
        jcenter()
    }
}

 

Guess you like

Origin blog.csdn.net/liu362732346/article/details/84785859