AndroidStudio中提示:Failed to resolve: com.github.CymChad:BaseRecyclerViewAdapterHelper:


场景

在Android Studio中通过如下方式

dependencies {
    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
}

引入某github上的依赖时提示:

Failed to resolve: com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30

 

 

博客:
https://blog.csdn.net/badao_liumang_qizhi
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载。

实现

在引用这个依赖的build.gradle中

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

 

添加仓库地址,添加位置如下

 

 

然后点击右上角sync now即可。 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM