[Android] Crash on app launch, after upgrade to 2.3.0
See original GitHub issueDescription
My app once bootsplash is destroyed I am shoiwing some animation as 1st thing. App is crashing just after opening only in release build on Android. iOS with version 2.3.0 is working fine.
Stack strace:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.swmansion.reanimated.layoutReanimation.f.j()' on a null object reference
at com.swmansion.reanimated.layoutReanimation.g.r(ReanimatedNativeHierarchyManager.java:1)
at com.facebook.react.uimanager.x0$m.c(UIViewOperationQueue.java:1)
at com.facebook.react.uimanager.x0$a.run(UIViewOperationQueue.java:19)
at com.facebook.react.uimanager.x0.U(UIViewOperationQueue.java:10)
at com.facebook.react.uimanager.x0.s(UIViewOperationQueue.java:1)
at com.facebook.react.uimanager.x0$j.c(UIViewOperationQueue.java:6)
at com.facebook.react.uimanager.f.a(GuardedFrameCallback.java:1)
at com.facebook.react.modules.core.g$d.a(ReactChoreographer.java:7)
at com.facebook.react.modules.core.a$a$a.doFrame(ChoreographerCompat.java:1)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1056)
at android.view.Choreographer.doCallbacks(Choreographer.java:880)
at android.view.Choreographer.doFrame(Choreographer.java:809)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1043)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:7879)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Downgrading renimated to 2.2.4 works fine.
Expected behavior
App should launch without crash.
Package versions
- React Native: 0.66.3
- React Native Reanimated: 2.3.0
- NodeJS: 14.17.2
- React Native Gesture Handler: 1.10.3
Affected platforms
- Android
- iOS
- Web
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
My React Native App Crash After Update Target Sdk Version 31
Google play forced us this update. The app crashes on Android 12 version devices. It works on android 10 or 11. My package.json...
Read more >Crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >App Store Review Guidelines - Apple Developer
Test your app for crashes and bugs; Ensure that all app information and metadata is complete and accurate; Update your contact information in ......
Read more >Mac Release Notes - Duet
Fix for being unable to toggle the automatically update application setting · Fixed a crash on trying to click on the Air tab...
Read more >Automatic resource shrinking causes app to crash [37010152]
Application crashes with following stacktrace: ... at android.content.res. ... This issue still persists on Android Studio 2.3 Beta2 / gradle:2.3.0-beta2, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I was getting the same issue. I solved it by adding reanimated to proguard rules.
-keep class com.swmansion.reanimated.** { *; }Link to the PR: https://github.com/software-mansion/react-native-reanimated/pull/2725
Thanks buddy, saved my time 😃