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' }
}
posted @ 2022-11-25 01:52  攻城狮小Liu  阅读(444)  评论(0)    收藏  举报