Error: Exception in HostObject::get for prop 'ReanimatedModule': java.lang.RuntimeException: [Reanimated] Failed to obtain instance of FabricUIManager. #6660
Labels
Missing repro
This issue need minimum repro scenario
Platform: Android
This issue is specific to Android
Description
I’m trying to upgrade to React Native version 0.76.1. However, I encountered the following error on the Android side.
Metro Bundle:
Error: Exception in HostObject::get for prop 'ReanimatedModule': java.lang.RuntimeException: [Reanimated] Failed to obtain instance of FabricUIManager.
Logcat:
FATAL EXCEPTION: main
Process: com.myapp, PID: 3096
java.lang.AssertionError
at com.swmansion.reanimated.NodesManager.(NodesManager.java:160)
at com.swmansion.reanimated.ReanimatedModule.getNodesManager(ReanimatedModule.java:128)
at com.swmansion.reanimated.layoutReanimation.ReaLayoutAnimator.maybeInit(ReaLayoutAnimator.java:36)
at com.swmansion.reanimated.layoutReanimation.ReaLayoutAnimator.isLayoutAnimationEnabled(ReaLayoutAnimator.java:191)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.isLayoutAnimationDisabled(ReanimatedNativeHierarchyManager.java:92)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.manageChildren(ReanimatedNativeHierarchyManager.java:148)
at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:194)
at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:879)
at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:992)
at com.facebook.react.uimanager.UIViewOperationQueue.-$$Nest$mflushPendingBatches(Unknown Source:0)
at com.facebook.react.uimanager.UIViewOperationQueue$2.runGuarded(UIViewOperationQueue.java:948)
at com.facebook.react.bridge.GuardedRunnable.run(GuardedRunnable.java:29)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Steps to reproduce
Snack or a link to a repository
tdinckaya
Reanimated version
3.16.1
React Native version
0.76.1
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
Debug app & dev bundle
Device
Real device
Device model
Samsung Galaxy A50
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: