please help me!
here is error says:
Error:Execution failed for task \':app:mergeDebu
Try code on your module build.gradle
:
android {
// ...
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
// ...
}
It means Android studio DO NOT check PNG strictly.
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.
In my case I had one 9-patch resource in every screen density drawable folder. Black borders in every resource didn't match eachother so I stretched them up to the very corner, so they all matched.
This is the result:
And then it worked!
I got the same issue after I added 9 patch image in my project. Removing that image solved my problem.
Some times I also get this error
Rebuilding the entire project before running (Build > Rebuild Project) it doesn't show up anymore.
You can try this.
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.