当前位置:网站首页>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'
}
边栏推荐
猜你喜欢
随机推荐
MySQL知识总结 (十) 一条 SQL 的执行过程详解
无人驾驶综述:摘要
[ROS] (02) Create & compile ROS package Package
spark写sql的方式
拥抱Jetpack之印象篇
DataX 的使用
Flask request application context source code analysis
Flask framework in-depth two
Spark_DSL
St. Regis Takeaway Notes - Lecture 05 Getting Started with Redis
标签加id 和 加号 两个文本框 和一个var 赋值
verilog学习|《Verilog数字系统设计教程》夏宇闻 第三版思考题答案(第十三章)
十分钟带你入门Nodejs
Using the cloud GPU + pycharm training model to realize automatic background run programs, save training results, the server automatically power off
原码、反码、补码和移码
C语言日记 7 输入/输出格式控制
C语言字符串——关于指针
我理解的学习金字塔
MySQL知识总结 (二) 存储引擎
安装使用——百家CMS微商城说明文档(2)

![[ROS] (02) Create & compile ROS package Package](/img/c2/5931d5cbade509c6ca34d66a274756.png)







