Error:Execution failed for task ':xxxxx:mergeDebugResources'.
> Some file crunching failed, see logs for details
AAPT err(Facade for 1205481861): libpng error: Not a PNG file
有的图片是通过直接修改后缀改成PNG格式的,这种方法转换的PNG图片是不合法的。
如在Eclipse中使用的xx.9.png格式的图片,在Android Studio中是无法使用的,需要把.9去掉,修改成xx.png.
在Eclipse中有些.png图片,是直接从其它图片格式(如:.jpg)修改后缀名得来,而不是另存为.png的,在Android Studio无法使用,会出现异常,需要把图片另存为.png格式才可以使用。