react-native-code-push
react-native-code-push copied to clipboard
Android app crash and rollback after codepush update
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
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.
Hey @DongGukMon Im facing the same issue can you tell if you were able to resolve the error?
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, 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.
@Yamini0 , are you having the exact same error as in the issue description? Are you using sentry as well?
Closing due to inactivity.