LitePager icon indicating copy to clipboard operation
LitePager copied to clipboard

error: duplicate value for resource 'attr/orientation' with config ''

Open XuanYuan1122 opened this issue 5 years ago • 2 comments

添加依赖以后 你的自定义属性orientation找不到 我看了一下是因为没有写成andriod:orientation 博主能解决一下么?

XuanYuan1122 avatar Mar 31 '20 03:03 XuanYuan1122

@wuyr

XuanYuan1122 avatar Mar 31 '20 03:03 XuanYuan1122

是属性名冲突了,除了LitePager还有另外一个自定义View也定义了orientation这个属性, 如果你能修改对应的attr,把它后面的format去掉就行,比如:

<attr name="orientation" format="xxxxx" />

改成:

<attr name="orientation"/>

最后clean一下project就OK了。 (只更改其中一个就行)

wuyr avatar Apr 12 '20 07:04 wuyr