Failed to resolve: com.github..

android studio 常出现 依赖了github库后 报错:Failed to resolve: com.github..

解决办法只需添加  如下仓库url

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

注意添加位置:allprojects 目录下

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

猜你喜欢

转载自blog.csdn.net/qq_36355271/article/details/99624613