Failed to resolve: com.github.*

引入外部包时常见说要在项目根目录的build.gradle中添加

allprojects {
    repositories {
        ......
        maven { url 'https://jitpack.io' }
    }
}

但还是会报错Failed to resolve: com.github.*

最新的androidStudio要到根目录的settings.gradle中去添加

repositories {
    ......
    maven { url 'https://jitpack.io' }
}

参考:Failed to resolve: com.github.* – 自我的进化

猜你喜欢

转载自blog.csdn.net/glovenone/article/details/123530407