Android - Error:execution Failed For Task ':app:mergedebugresources'
Solution 1:
Try code on your module build.gradle
:
android {
// ...
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false// ...
}
It means Android studio DO NOT check PNG strictly.
Solution 2:
I got the same issue after I added 9 patch image in my project. Removing that image solved my problem.
Solution 3:
I got the same issue when I insert png image to drawable folder. I delete that image,clean project and rebuild it , the issue resolved.This worked for me.
Solution 4:
Try to check that, if you use a 9-patch image, it is in correct format (with black pixel on the edge and they mustn't touch the pixel of your image). I resolved this problem with changing a 9-patch image that is malformed. In my case the image touched the black pixel of 9-patch e android studio showed that error.
Solution 5:
I got this error when I added an image I had saved in gimp as 'filename.9.png' (which I thought was enough to produce a 9-patch image) to the drawable folder. To solve the issue I just opened the image in the Draw 9-patch tool and moved one of the bounds around - it didn't seem to matter whether I moved it back to the same spot, just the act of moving the bounds seems to correct the issue.
Post a Comment for "Android - Error:execution Failed For Task ':app:mergedebugresources'"