AAPT err(Facade for): libpng error: Not a PNG file 错误解决
2017-05-12 18:05
549 查看
在导入项目到Android studio后,若编译出现“AAPT err(Facade for): libpng error: Not a PNG file”错误。
该错误表示项目中的drawable下的图片文件有非png图片,命名为了png造成的。
参照之前写的一篇文章Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:错误
解决办法相同,在gradle的Android{
… } 中加入这两句就可以了
android {
......
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
......
}
该错误表示项目中的drawable下的图片文件有非png图片,命名为了png造成的。
参照之前写的一篇文章Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:错误
解决办法相同,在gradle的Android{
… } 中加入这两句就可以了
android {
......
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
......
}
相关文章推荐
- AAPT err(Facade for): libpng error: Not a PNG file 错误解决,错误的原因就是drawable下的文件不合法
- 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 错误
- 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 928882516): libpng error: Not a PNG file 问题解决
- 错误:AAPT err(Facade for ): libpng error: Not a PNG file
- AAPT err(Facade for 1224284530): libpng error: Not a PNG file
- AAPT err(Facade for): libpng error: Not a PNG file
- Android项目在Eclipse上运行正常,在AS上出错解决办法(AAPT err(Facade for 1867654195): libpng error: Not a PNG file)
- AAPT err(Facade for 2093282576): libpng error: Not a PNG file
- 出现PNG文件错误的解决方案AAPT err(Facade for 1773557322): libpng error: Not a PNG file
- AAPT err(Facade for 1660295362): libpng error: Not a PNG file
- Android项目在Eclipse上运行正常,在AS上出错解决办法(AAPT err(Facade for 1867654195): 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