自定义View- 编译时出现aapt.exe finished with non-zero exit value 1错误的解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012153184/article/details/53257009

问题解决方案来自

http://blog.csdn.net/tcpipstack/article/details/51559613

XMl 中 attrs.xml文件需要制定 属性的格式

<declare-styleable name="ListItemLinearLayout">
<attr name="singleLine" />
<attr name="titleSize" format="dimension" />

可以看出singleLine没有对应的format属性,确定singleLine没有在代码中使用之后,将此属性删掉或者给其添加属性 。

重新编译之后,问题解决。

猜你喜欢

转载自blog.csdn.net/u012153184/article/details/53257009