ERROR: Failed to resolve: com.github.**** 报错

ERROR: Failed to resolve: com.github.****   报错android

缘由之一:

maven { url "https://jitpack.io" }   maven 加错地方

咱们整个工程的build中。 一看有两个repositories;git

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        //须要把maven加在这里
        maven { url "https://jitpack.io" }
    }
}