Failed to resolve: com.github..

android studio often reports an error after relying on the github library: Failed to resolve: com.github..

 

The solution only needs to add the following warehouse url

maven {
    url "https://jitpack.io"
}

Note the adding location: under the allprojects directory

allprojects {
    repositories {
        maven {
            url "https://jitpack.io"
        }
        google()
        jcenter()
    }
    
}

Guess you like

Origin blog.csdn.net/qq_36355271/article/details/99624613