您的位置:首页 > 产品设计 > UI/UE

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

2016-11-21 10:37 232 查看
问题解决方案来自

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没有在代码中使用之后,将此属性删掉或者给其添加属性 。

重新编译之后,问题解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐