Skip to content

Instantly share code, notes, and snippets.

@modpluz
Last active March 21, 2019 20:14
Show Gist options
  • Save modpluz/072e1f2b4a1429dbcf2306c1b2fbbf47 to your computer and use it in GitHub Desktop.
Save modpluz/072e1f2b4a1429dbcf2306c1b2fbbf47 to your computer and use it in GitHub Desktop.
React Native Android build Troubleshooting
Rebuild Bundle
`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`
error: Duplicate file. Original is here. The version qualifier may be implied.
`rm -rf android/app/src/main/res/drawable-xxxhdpi android/app/src/main/res/drawable-xxhdpi android/app/src/main/res/drawable-xhdpi android/app/src/main/res/drawable-mdpi android/app/src/main/res/drawable-hdpi`
`cd android && ./gradlew assembleRelease`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment