当前位置:网站首页>AAPT: error: duplicate value for resource ‘attr/xxx‘ with config ‘‘, file failed to compile.
AAPT: error: duplicate value for resource ‘attr/xxx‘ with config ‘‘, file failed to compile.
2022-08-02 14:06:00 【慢行的骑兵】
bug出现场景:迁移一个老项目新IDE(AS 3.6.3),经过修改一些配置,项目编译通过,运行的时候出现如果错误。

/用户名路径/.gradle/caches/transforms-2/files-2.1/fe76808470c2aae890b80fb0fe4dd9b3/design-23.4.0/res/values/values.xml:19:5-827: AAPT: error: duplicate value for resource ‘attr/layout_anchorGravity’ with config ‘’.
通过观察,问题应该出现在有重复的layout_anchorGravity 属性导致这个问题。
全部搜索"layout_anchorGravity",Ctrl + Shift + F/R,选择Scope,结果如下:

控制台执行命令:./gradlew app(模块名):dependencies

处理方式
implementation ('com.jcodecraeer:xrecyclerview:1.5.8'){
exclude group:'com.android.support'
}
边栏推荐
猜你喜欢

Using the cloud GPU + pycharm training model to realize automatic background run programs, save training results, the server automatically power off

关于UDF

C语言——断言assert的使用

redis delay queue

spark on yarn

NDK入门篇:C语言基础

重新学习编程day1 【初始c语言】【c语言编写出计算两个数之和的代码】

MySQL知识总结 (十) 一条 SQL 的执行过程详解

static关键字3种作用,简单粗暴对比,好理解

绕过正则实现SQL注入
随机推荐
liunx下mysql遇到的简单问题
redis delay queue
[ROS] (02) Create & compile ROS package Package
ConstraintLayout从入门到放弃
7.如何给RecyclerView添加Click和LongClick事件
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十三章)
使用flutter小记
宝塔面板搭建小说CMS管理系统源码实测 - ThinkPHP6.0
Redis持久化机制
MySQL知识总结 (二) 存储引擎
Kubernetes架构和组件
Flask framework in-depth two
C语言初级—判断一个数是不是素数(函数封装)
MySQL知识总结 (八) InnoDB的MVCC实现机制
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十一章)
【c】小游戏---扫雷雏形
华为防火墙
MongoDB Compass 安装与使用
uni-app页面、组件视图数据无法刷新问题的解决办法
c语言用scanf出错不安全的解决办法