Resource and asset merger: Duplicate resources code example

Example 1: error duplicate resources react native

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

rm -rf ./android/app/src/main/res/raw

Example 2: Resource and asset merger: Duplicate resources

"release-build": "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/build/intermediates/res/merged/release/ && rm -rf android/app/src/main/res/drawable-* && rm -rf android/app/src/main/res/raw/* && cd android && ./gradlew assembleRelease && cd .."

Tags:

Misc Example