android 在attrs.xml添加属性时出现 Found item Attr/****** more than one time

今天一个项目需要一个圆角图片的View,手头上又没有能画圆角的View,只有画圆形图片的View,于是就去网上找了一个,

但是在网上copy了别人的组件后,在attrs.xml报了错误。

android 在attrs.xml添加属性时出现 Found item Attr/****** more than one time

很明显,错误是从attrs.xml出来的。至于是哪里呢。

android 在attrs.xml添加属性时出现 Found item Attr/****** more than one time

发现这里有两个name是相同的的。百度了下,发现这个文件的属性时不能重名的,那么,好像就有一个办法咯。

把name属性名改掉