-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Android crash after bundle install #2258
Description
Hi all,
I'm trying to integrate the library inside a react-native 0.65.1 project (classical architecture from the template). The set-up goes well and iOS work perfectly.
The problem I'm facing: after code-push download the bundle and plan the install, the Android app crash after installing the bundle with the ugly error: TypeError: Cannot read property 'split' of undefined - Hermes engine.
Steps to Reproduce
- Publish a React bundle to app center
assembleReleasea version and install it inside the emulator for test the behaviour- Start the application and wait the bundle will be downloaded from AppCenter.
- Background / Foreground for trigger the install.
- The app crash.
Expected Behavior
If iOS works correctly, I'm expecting that even Android works fine.
Actual Behavior
The Android crash after install the new bundle. If I retry to re-open the app, the application rollback the previous correct bundle.
Reproducible Demo
Another point of interest is that I also facing the:
[CodePush] Unable to get the hash of the binary's bundled resources - "codepush.gradle" may have not been added to the build definition. problem.
The app don't crash for this cause, but the message appears in the logcat. I already tried every suggestions found inside the issues for the repo regarding this warning but nothing works.
I follow the classic set-up for react-native >= 0.60.
Don't esitate to contact me if you want more informations.
Environment
- react-native-code-push version: 7.0.4
- react-native version: 0.65.1
- Android version: Android Emulator Pixel 3a API 32 Arm64
- Does this reproduce on a debug build or release build? Release Build
- Does this reproduce on a simulator, or only on a physical device? Simulator