Skip to content

Instantly share code, notes, and snippets.

@tenkunkyab
Last active November 14, 2018 04:27
Show Gist options
  • Select an option

  • Save tenkunkyab/d39b4b2514d69a9b35ae98b01fced79c to your computer and use it in GitHub Desktop.

Select an option

Save tenkunkyab/d39b4b2514d69a9b35ae98b01fced79c to your computer and use it in GitHub Desktop.
Building React-Native Android Projects
react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug
cd android/
./gradlew assembleDebug
* if this errors out temporary fix
** place `android.enableAapt2=false` in `gradle.properties` # no longer required
./gradlew assembleRelease
* generated apk located in `android/app/build/outputs/apk
** The builds are unsigned so you'd have to change the security settings on that phone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment