Execution Failed for Task 'App:Mergedebugresources' Crunching Cruncher....Png Failed

Error:Execution failed for task ':app:mergeDebugResources'. Some file crunching failed, see logs for details build gradle issues

All problem was a crashed png image in one of my drawable folders. I mean the images which we sometime face in windows photo viewer, like the one below:
Sample Image

I dropped the image from the folder and all problem got solved.

Android Studio Gradle build error :app:mergeDebugResources, Crunching Cruncher loader.png failed

Shahar has given right answer, only point I would like to add in is-

I had hundred+ images in my project and checking every image was not possible, so what I did is used a tool to convert all of them in PNG at a time. I am MAC user so I used Preview App. I found one of the image was saved as PNG but not png file.

Gradle Build Fails Due to Error:Execution failed for task ':app:mergeDebugResources'. Crunching Cruncher photo.png failed

Thanks for the comments.
I ran the png through a png converter and it ended up working.
Even though the image was actually a png.
It's confusing but it worked.

Android - Error:Execution failed for task ':app:mergeDebugResources'

Try code on your module build.gradle:

android {
// ...
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
// ...
}

It means Android studio DO NOT check PNG strictly.

Error:Execution failed for task ':ProjectName:mergeDebugResources'. Crunching Cruncher *some file* failed, see logs

As stated here this can happen when using the Gradle Tools v1.1.0. After updating to v1.1.3, this has not happened anymore.



Related Topics



Leave a reply



Submit