出现Could not find com.scwang.smart:refresh

编程入门 行业动态 更新时间:2024-10-11 11:15:03

出现Could not <a href=https://www.elefans.com/category/jswz/34/1771123.html style=find com.scwang.smart:refresh"/>

出现Could not find com.scwang.smart:refresh

在android studio版本中

出现导入第三方依赖是出现一下问题

Could not find com.scwang.smart:refresh-layout-kernel:2.0.3.
Required by:project :app
Search in build.gradle files

解决方式:

settings.gradle 文件中加入:

google()
jcenter()
maven { url '/' }

即可解决;

完整代码是:

pluginManagement {repositories {gradlePluginPortal()google()jcenter()maven { url '/' }}}
dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {google()jcenter()maven { url '/' }maven { url '' }}
}
rootProject.name = "Paging3Demo"
include ':app'

更多推荐

出现Could not find com.scwang.smart:refresh

本文发布于:2024-03-23 17:08:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1740700.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:scwang   find   refresh   smart

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!