今天調試安卓程序遇到的問題Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs f
主要是圖片格式的問題,圖片要用png格式的,直接修改圖片格式會報這個錯誤無法調適
以下轉自:http://blog.csdn.net/nailsoul/article/details/50268291
錯誤代碼
Error:Execution failed for task ':PulltorefreshLibrary:mergeDebugAndroidTestResources'.
> Some file crunching failed, see logs for detailsAAPT err(Facade for 598446055) : No Delegate set : lost message:libpng error: CgBI: unhandled critical chunk
Gradle: Execution failed for task ':processDebugManifest'
錯誤原因
PulltorefreshLibrary res下的圖片有問題
1.圖片損壞打不開或格式錯誤直接把.jpg重命名.png文件 只改變了擴展名而格式沒有得到改變 需要用轉換軟件進行轉換
2.據說圖片經過xcode4壓縮后會出現該情況 如果情況屬實 經過其他壓縮軟件壓縮后是否會出現該問題 (沒經過證實)
發現問題圖片方式
用IDE工具打開沒張圖片看是否都能打開
該錯誤不是一定會出現 所以當出現之前能編譯突然出現該錯誤 而否認圖片有問題