过滤Android(安卓)Studio的[libpng error: Not a PNG file Error]错误
16lz
2021-01-26
当出现该问题时,在Logcat是没有提示到底哪张图片出问题了,如果一个项目中的png图片非常多,那处理这个问题绝对是个噩梦。经过Google,发现可以使用以下方式绕过这个错误:
android { compileSdkVersion 17 buildToolsVersion "24.0.2" .... //Returns true if the PNGs should be crunched, false otherwise. aaptOptions{ cruncherEnabled = false } ....}
传送门:http://stackoverflow.com/questions/23366222/libpng-error-not-a-png-file-error-showing-in-android-studio
更多相关文章
- 关于Android的屏幕适配,看这篇就够了
- android UI入门二 定义图片横竖屏切换正确显示
- Android画布和图形绘制---Canvas and Drawables(三)
- android 实现APP中改变头像图片
- 如何让你的Android显示gif格式的图片
- ImageView 长按保存
- android framework之Bluetooth
- Toast 显示文本,图片,及图文
- 用android原生代码实现联网得到图片