Attribute "xxx" already defined with incompatible format.報錯

Error:(514) Attribute "content" already defined with incompatible format.

接收一個項目編譯發現這個錯誤 , 經過查找發現 , 你 自定義的屬性和系統的屬性有衝突,

<attr name="content" format="string" />

打開自己的 values文件夾,打開 attrs.xml 找到和系統名稱相同的屬性,修改不同名稱就可以

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章