react-native ,

React Native - Build APK

Abhith Rajan Abhith Rajan FollowApril 24, 2018 · 1 min read · Last Updated:

First

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

Second

cd android

Final

./gradlew assembleDebug

Once all three commands executed successfully. You can find the generated APK on

Project root directory > android > app > build > outputs > apk > app-debug.apk

As the name suggests, this is not a release version. But still, you can share it with testers. I use hockeyapp to do the distribution.

Abhith Rajan
Written by Abhith Rajan Follow
Abhith Rajan is an aspiring software engineer with more than 6 years of experience and proven successful track record of delivering technology-based products and services.