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 8] App Crashes if target version doesn't match actual app version #1426

@kevinresol

Description

@kevinresol

Steps to Reproduce

  1. Make a release to CodePush, let's suppose its "Target Version" is 1.0.0
  2. Make a android release to Play Store, make sure its version is higher, say 1.0.1
  3. Start the android app

Expected Behavior

It should download a patch that matches the current app version.
If none exists, it should use the bundled script instead.

Actual Behavior

App crashes:

Fatal Exception: java.lang.IllegalArgumentException
Unable to find JSIModule for class interface com.facebook.react.bridge.UIManager

com.facebook.react.bridge.JSIModuleRegistry.getModule (JSIModuleRegistry.java:17)
com.facebook.react.bridge.CatalystInstanceImpl.getJSIModule (CatalystInstanceImpl.java:478)
com.facebook.react.uimanager.UIManagerHelper.getUIManager (UIManagerHelper.java:32)
com.facebook.react.uimanager.UIManagerModule.dispatchViewManagerCommand (UIManagerModule.java:597)
java.lang.reflect.Method.invoke (Method.java)

Environment

  • react-native-code-push version: 5.4.2
  • react-native version: 0.56.0
  • iOS/Android/Windows version: android 8 (not sure about ios and windows)
  • Does this reproduce on a debug build or release build? signed release build only
  • Does this reproduce on a simulator, or only on a physical device? both

Also see: facebook/react-native#20636 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions