首页 > 代码库 > Android - 错误: "Invalid 9-patch, cannot be less than 3 pixels in a dimension"

Android - 错误: "Invalid 9-patch, cannot be less than 3 pixels in a dimension"

错误: "Invalid 9-patch, cannot be less than 3 pixels in a dimension"


本文地址: http://blog.csdn.net/caroline_wendy


错误: "Invalid 9-patch, cannot be less than 3 pixels in a dimension: Invalid 9-patch, cannot be less than 3 pixels in a dimension"

原因:
9-patch文件名, 命名错误.
原命名是".9.png", 把".9"删除即可, 按错误信息, 修改相关文件名即可.
在修改文件名时, 需要"clean project”, 清除一些错误.




Android - 错误: "Invalid 9-patch, cannot be less than 3 pixels in a dimension"