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:
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
Extending Application to Share Variables Globally
How to Programmatically Set the Layout_Align_Parent_Right Attribute of a Button in Relative Layout
Sending Text Messages Programmatically in Android
Android How to Display 2 Listviews in One Activity One After the Other
Disable Activity Slide-In Animation When Launching New Activity
Detect Scroll Up & Scroll Down in Listview
I am Getting Imei Null in Android Q
Picasso Load Image from Filesystem
Android and Setting Width and Height Programmatically in Dp Units
Android HTML5 Input Type="Password" and Numeric Keyboard
What Is the Real Android Studio Gradle Version
Android Fragment Lifecycle Over Orientation Changes
Google Android Usb Driver and Adb
Android Boot_Completed Not Received When Application Is Closed
Android - Drawable with Rounded Corners at the Top Only
Android Get Orientation of a Camera Bitmap? and Rotate Back -90 Degrees
How to Create a Circular (Endless) Recyclerview
Failed to Resolve: Com.Android.Support:Appcompat-V7:27.+ (Dependency Error)