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

could not open file index.android.bundle after restart app #1610

@dreamhb

Description

@dreamhb

Hi, my app is in debug mode, and I add this to app/build.gradle

project.ext.react = [
    bundleInDebug: true
]

Steps to Reproduce

1.app check update and the update is installed
ReactNativeJS: [CodePush] Checking for update.
ReactNativeJS: [CodePush] Awaiting user action.
ReactNativeJS: [CodePush] Downloading package.
ReactNative: [CodePush] Applying full update.
ReactNativeJS: [CodePush] Installing update.
ReactNativeJS: [CodePush] Update is installed and will be run on the next app restart.
2. restart app
ReactNative: [CodePush] Loading JS bundle from "/data/user/0/pkgName/files/CodePush/33601dfc1a2ec23e07ab178f548e3f1aa2a50f07f1fcf61f6829f278951417f7/CodePush/index.android.bundle"
ReactNative: [CodePush] Update did not finish loading the last time, rolling back to a previous version.
ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle"
3.open the react-native activity
com.facebook.jni.CppException: facebook::react::Recoverable: Could not open file/data/user/0/pkgName/files/CodePush/33601dfc1a2ec23e07ab178f548e3f1aa2a50f07f1fcf61f6829f278951417f7/CodePush/index.android.bundle: No such file or directory

Expected Behavior

update can apply to my app

Actual Behavior

update not work

Reproducible Demo

Environment

  • react-native-code-push version: 5.6.0
  • react-native version: 0.59.8
  • iOS/Android/Windows version: Android Q
  • Does this reproduce on a debug build or release build? debug build
  • Does this reproduce on a simulator, or only on a physical device? physical device Google pixel 2

project integrates react-native and react-native-navigation v2 into existing native app

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions