Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Android crash after bundle install #2258

@leolusoli

Description

@leolusoli

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

  1. Publish a React bundle to app center
  2. assembleRelease a version and install it inside the emulator for test the behaviour
  3. Start the application and wait the bundle will be downloaded from AppCenter.
  4. Background / Foreground for trigger the install.
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions