解决android打包时候出现的 error: failed to read PNG signature: file does not start with PNG signature

726 阅读1分钟

解决android打包时候出现的 error: failed to read PNG signature: file does not start with PNG signature

关于

E:\PersonalSVN\Blog\app\src\main\res\drawable-xxhdpi\splash_image.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.
这个是打包时候出现的错误,我认为大概意思是图片类型是png的但是签名时候类型判断不出来。

解决办法

只需要将图片复制出来,然后右键使用画图编辑,保存为PNG格适即可。
在这里插入图片描述
ok,重新打包,问题解决。