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

In the individual apps's build.gradle, section android {}, insert :

aaptOptions {  
    cruncherEnabled = false  
}  

Reference


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: enter image description here

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


Actually, image file something wrong. Go to (drawable) and remove image or replace with new image.This will solve problem.

In addition, you can put method in (build.gradle), but This will not solve the problem but good way to catch up what was wrong.

In build.gradle, section android {}, insert (cruncherEnagle = false)apptOptions.