The given artifact contains a string literal with a package reference ‘android.s

论坛 期权论坛 脚本     
匿名技术用户   2021-1-5 08:50   18   0

具体报错信息:

The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.

产生这个错误的原因是由于项目引用了AndroidX的依赖包,但是下面butterknife这两个依赖的内部是引用之前的 support 包实现的,因此产生矛盾

只需要更改以上的依赖到最新版本即可,如将8.6.0改为10.0.0即可

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP