react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Android app crash and rollback after codepush update

Open DongGukMon opened this issue 10 months ago • 3 comments

After the codepush update, the app shuts down with a 50% probability and appears as rollback. And if you check the logcat, you'll see "java.lang.NullPointerException: Parameters specified as non-null is null: method androidx.lifecycle.LifecycleRegistry.removeObserver, parameterObserver" error. What did I do wrong?

Environment

  • react-native-code-push version: 8.2.2
  • react-native version: 0.72.6

DongGukMon avatar Apr 09 '24 04:04 DongGukMon

I noticed that it was a collision with sentry, and I solved it by upgrading the sentry library to the latest version. However, since then, there has been a crash with errors such as "failed to read /proc/uptime: permission denied" and "ReadableNativeArray cannot be cast to java.lang.string", which also seems to be an occasional issue, so I will share it again when I find out the cause and solution.

DongGukMon avatar Apr 09 '24 06:04 DongGukMon

Hey @DongGukMon Im facing the same issue can you tell if you were able to resolve the error?

Yamini0 avatar Apr 23 '24 08:04 Yamini0

Environment react-native-code-push: 8.2.2 react-native: 0.73.5

Error

react-native-code-push could not be found within the project or in these directories:
import codePush from "react-native-code-push";

Solution Work good with react-native-code-push: 8.2.1

nppull avatar Apr 23 '24 14:04 nppull

@nppull, this error does not seem related to the original issue. Please ensure that the react-native-code-push package is correctly added to your app. Try creating a fresh app with react-native-code-push and see if it works. If it does, check for any differences that could potentially cause the issue in your main application. If the issue reproduces on the new app, please file a separate issue with the demo app attached.

DmitriyKirakosyan avatar Jun 11 '24 06:06 DmitriyKirakosyan

@Yamini0 , are you having the exact same error as in the issue description? Are you using sentry as well?

DmitriyKirakosyan avatar Jun 11 '24 06:06 DmitriyKirakosyan

Closing due to inactivity.

DmitriyKirakosyan avatar Jul 02 '24 09:07 DmitriyKirakosyan