自己项目需要引入第三方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()
}
}