版权声明:本文为程序园中猿原创文章,转载请注明出处 https://blog.csdn.net/yinxing2008/article/details/85159660
报错信息样例:
ERROR: In <declare-styleable> NavigationTabStrip, unable to find attribute nts_bold
问题原因:
attr.xml文件
之前的写法:
<resources>
<declare-styleable name="NavigationTabStrip">
<attr name="nts_bold" value="true"/>
</declare-styleable>
</resources>
解决方案:
正确的写法:
<resources>
<declare-styleable name="NavigationTabStrip">
<attr name="nts_bold" format="boolean" value="true"/>
</declare-styleable>
</resources>
安卓开发技术分享:https://blog.csdn.net/yinxing2008/article/details/84555061