Reputation: 3550
Generating Signed APK through Android Studio doesn't include JS Bundle. I have been struggling install the release build on device it was not working. finally i enabled the debugging for Release build and i find out that Generated signed apk through android studio doesn't include js bundle.
How can i generate a signed apk including js bundle? to upload to play store.
Upvotes: 1
Views: 2797
Reputation: 3550
I found it on RN documentations :
Creating a release build in Android Studio You can use Android Studio to create your release builds too! It’s as easy as creating release builds of your previously-existing native Android app. There’s just one additional step, which you’ll have to do before every release build. You need to execute the following to create a React Native bundle, which’ll be included with your native Android app:
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/com/your-company-name/app-package-name/src/main/assets/index.android.bundle --assets-dest android/com/your-company-name/app-package-name/src/main/res/
Now just create a release build of your native app from within Android Studio as usual and you should be good to go!
Upvotes: 6