Error:Failed to resolve: com.android.support:recyclerview-v7:26.1.0

来源:互联网 发布:炫舞时代淘宝金币 编辑:程序博客网 时间:2024/06/07 11:00

自己项目需要引入第三方SDK,导入项目中,代码铺好,迫不及待看看效果,run,问题来了

Error:Failed to resolve: com.android.support:recyclerview-v7:26.1.0

立马查看下build.gradle,没有看到有依赖recyclerview-v7:26.1.0,左右排查一遍,没有发现任何关于26版本问题,立马猜测石油第三方仓库版本引入了26的包,问题来了,怎么解决。

Starting from version 26 of support libraries make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint.

项目中build.gradle

allprojects {    repositories {        maven { url "https://maven.google.com" }        jcenter()    }}

参考:https://stackoverflow.com/questions/45103230/failed-to-resolve-com-android-supportcardview-v726-0-0-android/45103707

阅读全文
0 0
原创粉丝点击