Error Execution failed for task ':app:mergeReleaseResources' building APK
Solution 1
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!
rm -rf android/app/src/main/res/drawable-*
Solution 2
As addition to accepted answer, if there is a "raw" folder in the same directory, also you must delete that.
Solution 3
I just deleted the drawable-* dirs as well raw dir from
android/app/src/main/res/ and it worked.
Lucas Mendes Mota Da Fonseca
I am graduated in Systems Analysis and Development at FATEC São Paulo and post-graduated in Big Data and Data Management Intelligence at Polytechnical School of USP. I have always been passionate about data and, after some years of working with software engineering, I moved to the data team in the QuintoAndar, where I contribute to designing the pipeline platforms and services standards aiming to improve and ensure high data availability. Medium: https://lucas-fonseca.medium.com/ LinkedIn: https://www.linkedin.com/in/lucas-mendes-mota-fonseca/
Updated on April 25, 2021Comments
-
Lucas Mendes Mota Da Fonseca about 3 years
After trying to build APK once and fixing an error, I got an error executing
./gradlew assembleRelease
again: Execution failed for task ':app:mergeReleaseResources' building APK