美文网首页
[解决方法]AndroidStudio,添加github库出错

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

作者: XBruce | 来源:发表于2019-12-18 16:58 被阅读0次

    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'
     ...
    }
    

    相关文章

      网友评论

          本文标题:[解决方法]AndroidStudio,添加github库出错

          本文链接:https://www.haomeiwen.com/subject/ermunctx.html