ERROR: 9-patch image xxxx.9.p malformed. Frame pixels must be either solid or transparent

刚刚在编译项目时,因为要从一个反编译项目中拿出几张图片用到项目中,编译时报以下错误,

target Package: Contacts (out/target/product/wxkjsz89_we_jb2/obj/APPS/Contacts_intermediates/package.apk)

ERROR: 9-patch image packagesxxxxx_holo_light.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #2 along top edge.
ERROR: Failure processing PNG image packages/apps/Contacts/res/drawable-xhdpi/tw_btn_default_focused_holo_light.9.png
ERROR: 9-patch image packages/xxxxxxolo_light.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #2 along top edge.
ERROR: Failure processing PNG image packages/apps/Contacts/res/drawable-xhdpi/tw_btn_default_normal_holo_light.9.png
ERROR: 9-patch image packages/apps比xxxxxpressed_holo_light.9.png malformed.
       Frame pixels must be either solid or transparent (not intermediate alphas).
       Found at pixel #2 along top edge.



报这错的原因是:这三张.9图片在反编译时,没有用对方式,导致这.9图片失真,可在XP系统下用office picture manager功能查看.9图片是否反编译成功,如果是成功的,.9图片用office picture manager打开是可以看到图片的各条边的那条线

你可能感兴趣的:(ERROR: 9-patch image xxxx.9.p malformed. Frame pixels must be either solid or transparent)