解决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,重新打包,问题解决。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐