当前位置:网站首页>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 8.0 新特性
spark写sql的方式
二进制乘法运算
主存储器(二)
【c】小游戏---扫雷雏形
A little thought about password encryption
Redis持久化机制
Flink前期代码结构
Scala连接Mysql数据库
不可不知的反汇编相关知识
Visual studio代码中有红色波浪线解决办法
Introduction and use of Haystack
Visual Studio配置OpenCV之后,提示:#include<opencv2/opencv.hpp>无法打开源文件
C语言日记 4 变量
字符串的小知识
static关键字3种作用,简单粗暴对比,好理解
drf view component
Raj delivery notes - separation 第08 speak, speaking, reading and writing
数据的表示方法和转换(二进制、八进制、十进制、十六进制)
C语言字符串——关于指针