ReactNative - "Could not get BatchedBridge, make sure your bundle is packaged properly”

2017-05-28 17:20
2017-05-28 17:20

Guten tag!

I encountered this error when I try to release to Android. In my case, I tried to build app-release.apk from Build > Generate Signed APK on Android Studio.

On this way, it works perfectly on local. But when I download from Google Play, It was down.

The error said, "Could not get BatchedBridge, make sure your bundle is packaged properly".


As a result, I had to build the signed apk via console.
This is the way.
https://facebook.github.io/react-native/docs/signed-apk-android.html

After you set all as the document, you can build apk by

$ cd android &&./gradlew assembleRelease

If you're using Android device to debug via USB, you can run this command.

$ adb install android/app/build/outputs/apk/app-release.apk


Tschüs!

このエントリーをはてなブックマークに追加