[解决方法]AndroidStudio,添加github库出错

2019-12-18  本文已影响0人  XBruce

ERROR: Failed to resolve: com.github.xxxxx:2.1.0

第一步 Project-build.gradle

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }//添加此句
    }
}

第二步 Model build.gradle添加

dependencies {
    implementation 'com.github.xxxx:2.1.0'
 ...
}
上一篇 下一篇

猜你喜欢

热点阅读