AAPT err(Facade for): libpng error: Not a PNG file 错误解决
来源:互联网 发布:mv免费下载软件 编辑:程序博客网 时间:2024/06/07 10:19
在导入项目到Android studio后,若编译出现“AAPT err(Facade for): libpng error: Not a PNG file”错误。
该错误表示项目中的drawable下的图片文件有非png图片,命名为了png造成的。
解决方案:
方案一、在模块下的build.gradle中配置下面两个信息,再clear project。
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
方案二、在android studio中,依次点开后缀为png的图片,可以查看到图片的文件信息,如下图,将不为png的图片另存为png图片或者修改图片后缀为对应的图片格式。
阅读全文
0 0
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- AAPT err(Facade for ): libpng error: Not a PNG file
- AAPT err(Facade for): libpng error: Not a PNG file
- AAPT err(Facade for): libpng error: Not a PNG file
- 错误:AAPT err(Facade for ): libpng error: Not a PNG file
- Android Studio 出现AAPT err(Facade for): libpng error: Not a PNG file 错误解决方案
- Android studio报 AAPT err(Facade for): libpng error: Not a PNG file 错误
- AAPT err (Facade for): libpng error: Not a PNG file 错误
- 解决Android studio编译时遇到AAPT err(Facade for): libpng error: Not a PNG file 错误
- 出现PNG文件错误的解决方案AAPT err(Facade for 1773557322): libpng error: Not a PNG file
- 出现PNG文件错误的解决方案AAPT err(Facade for 1773557322): libpng error: Not a PNG file
- AAPT err(Facade for 1191041091) : No Delegate set : lost message:libpng error: Not a PNG file
- AAPT err(Facade for 1660295362): libpng error: Not a PNG file
- android替换图片包错:AAPT err(Facade for ): libpng error: Not a PNG file
- ITK数据表达
- C#编程入门16_异常处理
- Python字符串方法整理
- 天天学Linux命令39--lsof命令
- opencv 11 OCR 字符识别(character_recognition) vs2015
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决
- An internal error occurred during: "Build Project". GC overhead limit exceeded
- 深入解析Cookie技术
- javascript-接口
- div 超过10条隐藏 带有展开隐藏按钮
- Centos7 搭建最新 Nexus3 Maven 私服
- 使用jq对表格数据进行操作
- Session的原理
- 【33】grunt打包工具的一些js跟命令