AAPT err(Facade for 928882516): libpng error: Not a PNG file 问题解决
Android Studio 3.0 aapt检查
这个错误的原因 就是项目中有的图片是非PNG格式,有可能修改文件的时候直接将后缀名改为.PNG
下面是来自StackOverflow上的解决方案:
Try run command
find . -type f -name "*.png" | xargs -L 1 -I{} file -I {} | grep -v 'image/png; charset=binary$'
in your root project directory, it will show you all files that have .png extension, but are not pngs. Then you can resave them as png in some image editor. Before running this command clean project, to speed up the process.
经本人亲自实验,检测出非PNG格式的图片:markdown_placeholder.png,其格式为JPEG