解决方案: 安卓打包apk出错 AAPT: error: failed to read PNG signature: file does not start with PNG signature.

时间:2025-04-23 07:36:05

问题

Failed to read PNG signature: file does not start with PNG signature

解决方法一:
在app/文件中加以下代码,以关闭Android Studio的PNG合法性检查。

 = false
 = false

解决方法二:
只需要将图片复制出来,然后右键使用画图编辑,保存为PNG格适即可。

解决方法三:
该图片的后缀为.png,重命名该图片的后缀为.jpg。