Android studio之导入新库提示Add library ‘Gradle*****@aar‘ to classpath
发布日期:2021-06-29 13:55:20 浏览次数:2 分类:技术文章

本文共 264 字,大约阅读时间需要 1 分钟。

1 问题

as导入第三方库在依赖的基类build.gradle里面添加如下

implementation 'com.truizlop.sectionedrecyclerview:library:1.2.0'

 提示错误如下

 

 

 

 

 

 

 

 

 

 

 

2 原因

implementation 单层引用,只引用当前aar包层,

api 多层引用,引用当前aar包层,以及aar包引用的aar包层

 

 

 

 

 

 

 

 

 

 

 

 

3 解决办法

用api替换implementation

api 'com.truizlop.sectionedrecyclerview:library:1.2.0'

 

转载地址:https://chenyu.blog.csdn.net/article/details/105568050 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Android之CheckBox进行代码设置setChecked(true)会触发setOnCheckedChangeListener事件
下一篇:Android之提示Method return type must not include a type variable or wildcard:

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2024年04月25日 03时29分43秒