Error Execution failed for task ':app:mergeReleaseResources' building APK Error Execution failed for task ':app:mergeReleaseResources' building APK android android

Error Execution failed for task ':app:mergeReleaseResources' building APK


The problem occured becaused when I tried to build once, it has created drawables dirs on android/app/src/main/res/. Then when I tried on second time, it has shown me this error Execution failed for task ':app:mergeReleaseResources' building APK

I just deleted the drawable-* dirs and it worked.

Hope it helps!

enter image description here

rm -rf android/app/src/main/res/drawable-*

enter image description here


As addition to accepted answer, if there is a "raw" folder in the same directory, also you must delete that.


I just deleted the drawable-* dirs as well raw dir from

android/app/src/main/res/ and it worked.