Gradle Build Failed For Task app:processReleaseResources
Finally I got solution for this issue after going through so many articles.
This issue is because of sdk tools Version mismatch.
The targeted sdk version in build.gradle file must match with the sdk version which you installed.
My solution came from here
REMOVE ALL IMAGES FROM RES/ DRAWABLE THAT YOU DON'T NEED
https://github.com/facebook/react-native/issues/19239
Credit for --> ZeroCool00
For those who are doing this before generating apk
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
it generate unnecessary drawable images in drawable folder. so make sure to remove it and try again.
android-> app -> src -> main -> res -> drawable