場景
在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即可。