software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.99k stars 1.3k forks source link

Error: Exception in HostObject::get for prop 'ReanimatedModule': java.lang.RuntimeException: [Reanimated] Failed to obtain instance of FabricUIManager. #6660

Open tdinckaya opened 5 hours ago

tdinckaya commented 5 hours ago

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

  1. react-native run-android

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

github-actions[bot] commented 5 hours ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?