Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not build reanimated V3 on React Native 0.72.1 and Android "ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)" #4679

Closed
efe3535 opened this issue Jul 6, 2023 · 48 comments
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS

Comments

@efe3535
Copy link

efe3535 commented Jul 6, 2023

Description

Can't build reanimated V3 on Android, getting an LD error complaining about an "undefined symbol".
I am using a MacBook Air M1.
Running macOS Ventura 13.4.1
NDK version: 23.1.7779620
React Native version: 0.72.1

> Task :react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a] FAILED
C/C++: ninja: Entering directory `/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android/.cxx/RelWithDebInfo/q326e5e2/arm64-v8a'
C/C++: ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android/.cxx/RelWithDebInfo/q326e5e2/arm64-v8a'
  [0/2] Re-checking globbed directories...
  [1/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o
  [2/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o
  [3/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedUIManagerBinding.cpp.o
  [4/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/NewestShadowNodesRegistry.cpp.o
  [5/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o
  [6/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o
  [7/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o
  [8/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/JsiUtils.cpp.o
  [9/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o
  [10/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o
  [11/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o
  [12/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidLogger.cpp.o
  [13/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o
  [14/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/WorkletEventHandler.cpp.o
  [15/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o
  [16/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o
  [17/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp.o
  [18/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/TurboModule.cpp.o
  [19/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidErrorHandler.cpp.o
  [20/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidScheduler.cpp.o
  [21/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o
  [22/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o
  [23/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o
  [24/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp.o
  [25/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o
  [26/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o
  [27/27] Linking CXX shared library ../../../../build/intermediates/cxx/RelWithDebInfo/q326e5e2/obj/arm64-v8a/libreanimated.so
  FAILED: ../../../../build/intermediates/cxx/RelWithDebInfo/q326e5e2/obj/arm64-v8a/libreanimated.so 
  : && /Users/ahmetefeakyazi/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/ahmetefeakyazi/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -DREACT_NATIVE_MINOR_VERSION=72 -DREANIMATED_VERSION=3.3.0 -DHERMES_ENABLE_DEBUGGER=0 -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++17 -Wall -Werror -DJS_RUNTIME_HERMES=1 -O2 -g -DNDEBUG  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Qunused-arguments -Wl,--no-undefined -shared -Wl,-soname,libreanimated.so -o ../../../../build/intermediates/cxx/RelWithDebInfo/q326e5e2/obj/arm64-v8a/libreanimated.so CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedUIManagerBinding.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/NewestShadowNodesRegistry.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/JsiUtils.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/WorkletEventHandler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidErrorHandler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidLogger.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidScheduler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/TurboModule.cpp.o  -llog  -landroid  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/folly_runtime/libs/android.arm64-v8a/libfolly_runtime.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/glog/libs/android.arm64-v8a/libglog.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/jsi/libs/android.arm64-v8a/libjsi.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/reactnativejni/libs/android.arm64-v8a/libreactnativejni.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/34c2120d0d3cd8dc97826fc02c9e8fc4/transformed/jetified-fbjni-0.3.0/prefab/modules/fbjni/libs/android.arm64-v8a/libfbjni.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/e1925d27dfeda554a62fa91e748dc57a/transformed/jetified-hermes-android-0.72.1-release/prefab/modules/libhermes/libs/android.arm64-v8a/libhermes.so   -latomic -lm && :
  ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
  >>> referenced by NativeArray.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/reactnativejni/include/react/jni/NativeArray.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::jni::basic_strong_ref<facebook::jni::HybridClass<facebook::react::ReadableNativeArray, facebook::react::NativeArray>::JavaPart, facebook::jni::LocalReferenceAllocator> facebook::jni::HybridClass<facebook::react::ReadableNativeArray, facebook::react::NativeArray>::newObjectCxxArgs<folly::dynamic>(folly::dynamic&&))
  >>> referenced by NativeMap.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/reactnativejni/include/react/jni/NativeMap.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::jni::basic_strong_ref<facebook::jni::HybridClass<facebook::react::ReadableNativeMap, facebook::react::NativeMap>::JavaPart, facebook::jni::LocalReferenceAllocator> facebook::jni::HybridClass<facebook::react::ReadableNativeMap, facebook::react::NativeMap>::newObjectCxxArgs<folly::dynamic>(folly::dynamic&&))
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.
  
  C++ build system [build] failed while executing:
      /Users/ahmetefeakyazi/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android/.cxx/RelWithDebInfo/q326e5e2/arm64-v8a \
        reanimated
    from /Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 48s
33 actionable tasks: 27 executed, 6 up-to-date

Steps to reproduce

  1. Set Reanimated V3 up using NPM, tested it on iOS and it worked.
  2. Tried to build for android and got the error.
  3. Install different versions of NDK
  4. Set CMAKE version to 3.22.1

Snack or a link to a repository

Can not reproduce on other platforms

Reanimated version

3.3.0

React Native version

0.72.1

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

AVD

Acknowledgements

Yes

@efe3535 efe3535 added the Needs review Issue is ready to be reviewed by a maintainer label Jul 6, 2023
@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Jul 6, 2023
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

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?

@github-actions github-actions bot added Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS labels Jul 6, 2023
@efe3535
Copy link
Author

efe3535 commented Jul 6, 2023

FYI I created a new project and tried reproducing that issue and got the error again...

@efstathiosntonas
Copy link
Contributor

can you try with ndk 24.0.8215888?

@efe3535
Copy link
Author

efe3535 commented Jul 6, 2023

Thank you so much! It worked. But I wonder why, as I've read on another websites this version accomplishes the M1 support.

@efstathiosntonas
Copy link
Contributor

This happened to me when I updated the emulators to the latest versions on Android Studio, no clue why.

I use M1 too

@efe3535 efe3535 closed this as completed Jul 6, 2023
@efstathiosntonas
Copy link
Contributor

@tomekzaw any idea why this could be happening?

@efe3535 efe3535 reopened this Jul 6, 2023
@efe3535
Copy link
Author

efe3535 commented Jul 6, 2023

Ugh, dumb me.

I can not get a release build now.

Here is the log with the new NDK:

> Configure project :react-native-reanimated
No AAR for react-native-reanimated found. Attempting to build from source.
Android gradle plugin: 7.4.2
Gradle: 8.0.1
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

> Task :react-native-gesture-handler:processReleaseManifest
package="com.swmansion.gesturehandler" found in source AndroidManifest.xml: /Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

> Task :react-native-reanimated:processReleaseManifest
package="com.swmansion.reanimated" found in source AndroidManifest.xml: /Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

> Task :react-native-reanimated:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a] FAILED
C/C++: ninja: Entering directory `/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android/.cxx/RelWithDebInfo/6ot2r1v6/arm64-v8a'
C/C++: ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android/.cxx/RelWithDebInfo/6ot2r1v6/arm64-v8a'
  [0/2] Re-checking globbed directories...
  [1/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o
  [2/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedUIManagerBinding.cpp.o
  [3/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o
  [4/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/NewestShadowNodesRegistry.cpp.o
  [5/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o
  [6/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o
  [7/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/JsiUtils.cpp.o
  [8/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o
  [9/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o
  [10/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o
  [11/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o
  [12/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/WorkletEventHandler.cpp.o
  [13/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o
  [14/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o
  [15/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp.o
  [16/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidLogger.cpp.o
  [17/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o
  [18/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/TurboModule.cpp.o
  [19/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidErrorHandler.cpp.o
  [20/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidScheduler.cpp.o
  [21/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o
  [22/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o
  [23/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o
  [24/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp.o
  [25/27] Building CXX object CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o
  [26/27] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o
  [27/27] Linking CXX shared library ../../../../build/intermediates/cxx/RelWithDebInfo/6ot2r1v6/obj/arm64-v8a/libreanimated.so
  FAILED: ../../../../build/intermediates/cxx/RelWithDebInfo/6ot2r1v6/obj/arm64-v8a/libreanimated.so 
  : && /Users/ahmetefeakyazi/Library/Android/sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/ahmetefeakyazi/Library/Android/sdk/ndk/24.0.8215888/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -DREACT_NATIVE_MINOR_VERSION=72 -DREANIMATED_VERSION=3.3.0 -DHERMES_ENABLE_DEBUGGER=0 -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++17 -Wall -Werror -DJS_RUNTIME_HERMES=1 -O2 -g -DNDEBUG  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Qunused-arguments -Wl,--no-undefined -shared -Wl,-soname,libreanimated.so -o ../../../../build/intermediates/cxx/RelWithDebInfo/6ot2r1v6/obj/arm64-v8a/libreanimated.so CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedUIManagerBinding.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Registries/NewestShadowNodesRegistry.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/JsiUtils.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp.o CMakeFiles/reanimated.dir/Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/Common/cpp/Tools/WorkletEventHandler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidErrorHandler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidLogger.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidScheduler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/TurboModule.cpp.o  -llog  -landroid  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/folly_runtime/libs/android.arm64-v8a/libfolly_runtime.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/glog/libs/android.arm64-v8a/libglog.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/jsi/libs/android.arm64-v8a/libjsi.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/reactnativejni/libs/android.arm64-v8a/libreactnativejni.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/34c2120d0d3cd8dc97826fc02c9e8fc4/transformed/jetified-fbjni-0.3.0/prefab/modules/fbjni/libs/android.arm64-v8a/libfbjni.so  /Users/ahmetefeakyazi/.gradle/caches/transforms-3/e1925d27dfeda554a62fa91e748dc57a/transformed/jetified-hermes-android-0.72.1-release/prefab/modules/libhermes/libs/android.arm64-v8a/libhermes.so   -latomic -lm && :
  ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
  >>> referenced by NativeArray.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/reactnativejni/include/react/jni/NativeArray.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::jni::basic_strong_ref<facebook::jni::HybridClass<facebook::react::ReadableNativeArray, facebook::react::NativeArray>::JavaPart, facebook::jni::LocalReferenceAllocator> facebook::jni::HybridClass<facebook::react::ReadableNativeArray, facebook::react::NativeArray>::newObjectCxxArgs<folly::dynamic>(folly::dynamic&&))
  >>> referenced by NativeMap.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/58a3e1b28d5beee274fc1f9b2978b700/transformed/jetified-react-android-0.72.1-release/prefab/modules/reactnativejni/include/react/jni/NativeMap.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::jni::basic_strong_ref<facebook::jni::HybridClass<facebook::react::ReadableNativeMap, facebook::react::NativeMap>::JavaPart, facebook::jni::LocalReferenceAllocator> facebook::jni::HybridClass<facebook::react::ReadableNativeMap, facebook::react::NativeMap>::newObjectCxxArgs<folly::dynamic>(folly::dynamic&&))
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.
  
  C++ build system [build] failed while executing:
      /Users/ahmetefeakyazi/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android/.cxx/RelWithDebInfo/6ot2r1v6/arm64-v8a \
        reanimated
    from /Users/ahmetefeakyazi/Desktop/Files/projects/react-native/todolist/node_modules/react-native-reanimated/android

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 9s
33 actionable tasks: 25 executed, 8 up-to-date```

@efe3535
Copy link
Author

efe3535 commented Jul 6, 2023

Also version 25.2.9519653 does not seem to work now...

@vishesh9096
Copy link

can you try with ndk 24.0.8215888?

What is ndk? I am getting same issue can you please explain

@vishesh9096
Copy link

I am having same issues in IOS

@efe3535
Copy link
Author

efe3535 commented Jul 7, 2023

can you try with ndk 24.0.8215888?

What is ndk? I am getting same issue can you please explain

NDK is used in Android builds. In my case there were not any issues with iOS.

@efeder-amd
Copy link

efeder-amd commented Jul 14, 2023

I'm having the same problem and mostly the same environment, except I have an intel chip not an M1 chip and I am on React Native 0.72.3. NDK 24.0.8215888 did not fix the issue.

@piaskowyk
Copy link
Member

Do you use rosetta to building?

@vishesh9096
Copy link

Use this version of reanimated works perfectly
"react-native-reanimated": "^3.4.0-nightly-20230706-ca2bcda22"

@vishesh9096
Copy link

Use this version of reanimated works perfectly "react-native-reanimated": "^3.4.0-nightly-20230706-ca2bcda22"

paste this in ur package.json insted of normal version of reanimated and then npm i

@vishesh9096
Copy link

I'm having the same problem and mostly the same environment, except I have an intel chip not an M1 chip and I am on React Native 0.72.3. NDK 24.0.8215888 did not fix the issue.

do letme know if it works

@efe3535
Copy link
Author

efe3535 commented Jul 14, 2023

I'm having the same problem and mostly the same environment, except I have an intel chip not an M1 chip and I am on React Native 0.72.3. NDK 24.0.8215888 did not fix the issue.

do letme know if it works

Gonna try that when I arrive home.

@efe3535
Copy link
Author

efe3535 commented Jul 14, 2023

Do you use rosetta to building?

No.

@efeder-amd
Copy link

"react-native-reanimated": "^3.4.0-nightly-20230706-ca2bcda22"

I am getting the same error. Thanks for the suggestion, though.

@efeder-amd
Copy link

@vishesh9096 Actually I realized that now I'm getting a very similar error, but not on the react-native-reanimated build task but rather on this task (expo-modules-core:buildCMakeDebug[arm64-v8a]), so perhaps your suggestion did fix the issue on the reanimated side.

@vishesh9096
Copy link

@vishesh9096 Actually I realized that now I'm getting a very similar error, but not on the react-native-reanimated build task but rather on this task (expo-modules-core:buildCMakeDebug[arm64-v8a]), so perhaps your suggestion did fix the issue on the reanimated side.

I am using react-native cli works perfectly

@efe3535
Copy link
Author

efe3535 commented Jul 14, 2023

On react-native-cli I get the same error again.

  FAILED: ../../../../build/intermediates/cxx/Debug/1t1i1k6j/obj/arm64-v8a/libreanimated.so```

```ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
  >>> referenced by NativeArray.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/reactnativejni/include/react/jni/NativeArray.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeArray::NativeArray<folly::dynamic>(folly::dynamic&&))
  >>> referenced by NativeMap.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/reactnativejni/include/react/jni/NativeMap.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeMap::NativeMap<folly::dynamic>(folly::dynamic&&))
  >>> did you mean: folly::dynamic::dynamic(folly::dynamic&&)
  >>> defined in: /Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/folly_runtime/libs/android.arm64-v8a/libfolly_runtime.so
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.```

@efeder-amd
Copy link

On react-native-cli I get the same error again.

  FAILED: ../../../../build/intermediates/cxx/Debug/1t1i1k6j/obj/arm64-v8a/libreanimated.so```

```ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
  >>> referenced by NativeArray.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/reactnativejni/include/react/jni/NativeArray.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeArray::NativeArray<folly::dynamic>(folly::dynamic&&))
  >>> referenced by NativeMap.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/reactnativejni/include/react/jni/NativeMap.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeMap::NativeMap<folly::dynamic>(folly::dynamic&&))
  >>> did you mean: folly::dynamic::dynamic(folly::dynamic&&)
  >>> defined in: /Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/folly_runtime/libs/android.arm64-v8a/libfolly_runtime.so
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.```

Do you get the error if you downgrade to reanimated v2 and React Native 0.71?

@efe3535
Copy link
Author

efe3535 commented Jul 17, 2023

On react-native-cli I get the same error again.

  FAILED: ../../../../build/intermediates/cxx/Debug/1t1i1k6j/obj/arm64-v8a/libreanimated.so```

```ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
  >>> referenced by NativeArray.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/reactnativejni/include/react/jni/NativeArray.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeArray::NativeArray<folly::dynamic>(folly::dynamic&&))
  >>> referenced by NativeMap.h:40 (/Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/reactnativejni/include/react/jni/NativeMap.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeMap::NativeMap<folly::dynamic>(folly::dynamic&&))
  >>> did you mean: folly::dynamic::dynamic(folly::dynamic&&)
  >>> defined in: /Users/ahmetefeakyazi/.gradle/caches/transforms-3/03dccab32998b7f1f4d6aa70c3dc2129/transformed/jetified-react-android-0.72.1-debug/prefab/modules/folly_runtime/libs/android.arm64-v8a/libfolly_runtime.so
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.```

Do you get the error if you downgrade to reanimated v2 and React Native 0.71?

No. Another project which depends on Reanimated V2 works just fine.

@efeder-amd
Copy link

efeder-amd commented Jul 19, 2023

I found this discussion on the expo discord which suggested that it's probably just a polluted cache for the similar expo error (with expo-modules-core:buildCMakeDebug[arm64-v8a]) . What ended up fixing it for me was:

# Answer Y to all:
npx react-native-clean-project
cd android
rm -rf .gradle
# this will recursively force wipe any untracked files
git clean -dfx

Then npm install and run android.

@efe3535
Copy link
Author

efe3535 commented Jul 19, 2023

Tried that and it still does not work giving the same error. Very interesting... I've run the commands and even deleted ~/.gradle as the Discord thread suggests.

One thing I am wondering is if I'll get the error that Expo user got building for Android.

@efe3535
Copy link
Author

efe3535 commented Jul 19, 2023

[RUN_GRADLEW]   >>> referenced 1 more times
[RUN_GRADLEW]   clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[RUN_GRADLEW]   ninja: build stopped: subcommand failed.
[RUN_GRADLEW]
[RUN_GRADLEW]   C++ build system [build] failed while executing:
[RUN_GRADLEW]       /Users/ahmetefeakyazi/Library/Android/sdk/cmake/3.22.1/bin/ninja \
[RUN_GRADLEW]         -C \
[RUN_GRADLEW]         /private/var/folders/lb/wqgh4_7d6vd7g9jsl1k6qrzm0000gn/T/eas-build-local-nodejs/89ec1d69-a2cc-4586-acd1-02294951078c/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/461a2na1/arm64-v8a \
[RUN_GRADLEW]         expo-modules-core
[RUN_GRADLEW]     from /private/var/folders/lb/wqgh4_7d6vd7g9jsl1k6qrzm0000gn/T/eas-build-local-nodejs/89ec1d69-a2cc-4586-acd1-02294951078c/build/node_modules/expo-modules-core/android
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] 2: Task failed with an exception.
[RUN_GRADLEW] -----------
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] java.lang.StackOverflowError (no error message)
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] * Get more help at https://help.gradle.org
[RUN_GRADLEW] BUILD FAILED in 4m 47s
[RUN_GRADLEW] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[RUN_GRADLEW] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[RUN_GRADLEW] See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
[RUN_GRADLEW] Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
[RUN_GRADLEW] Please consult deprecation warnings for more details.
[RUN_GRADLEW] 142 actionable tasks: 142 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
npx exited with non-zero code: 1
    Error: build command failed.

Yup. Got the same error, I think it is a local error then, not a problem about the lib. I'll try running these commands in different combinations 😄

@efeder-amd
Copy link

Yup. Got the same error, I think it is a local error then, not a problem about the lib. I'll try running these commands in different combinations 😄

I also used Expo Prebuild to fix some other build errors I was having, so you might want to try that.

@vndee
Copy link

vndee commented Jul 26, 2023

Hi!
Have anyone solved this? I am facing the same issue :(

@efeder-amd
Copy link

Hi! Have anyone solved this? I am facing the same issue :(

I did first this, then this. After the first I still had errors, but they were different ones, and after the second, I can now build and run my application.

@nth-zik
Copy link

nth-zik commented Aug 20, 2023

The same on me, i did everything (reinstall ndk, rm node_modules, rm gradle cache, reinstall...) but still not work
ndk 23.1.7779620)
Issue happen on mac m1 pro
RN 0.72.4
But still can build on windows, so I think the problem come from my MacBook

Update:
I figure out, the command work when run as root. But I don't know how to fix this

@emilcieslar
Copy link

I was having a similar issue with undefined symbol on M1 MacBook when installing react-native-static-server and it was solved by updating the minSdkVersion: birdofpreyru/react-native-static-server#51 (comment) It might be completely unrelated though.

@tiagojenuino
Copy link

Hello, guys! I'm pass for issue, which the frameProcessor can't turn because reanimated V3 is not installed, however, already installed reanimated. Too the plugin are issue. Can anyone help me? Follow my code:

Imported:
import React, { useState, useEffect } from 'react';
import { Text, View, Button, TouchableOpacity, Alert } from 'react-native';
import firestore from '@react-native-firebase/firestore';
import { Picker } from '@react-native-picker/picker';
import styles from './styles';
import { NavigationContainer, useRoute } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { TextInput } from 'react-native-paper';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import {Camera, useCameraDevices, useFrameProcessor} from 'react-native-vision-camera';
import { runOnJS } from 'react-native-reanimated';
import{ scanOCR } from 'vision-camera-ocr';

Code:
const Cameracode = ({ navigation }) => {
const [device, setDevice] = useState(null);
const devices = useCameraDevices();
const [text, setText] = useState('');

const frameProcessor = useFrameProcessor((frame)=>{
'worklet';
const data = scanOCR(frame);

runOnJS(setText)(data.result.text);
}, []);

useEffect(() => {
const fetchCameraDevice = async () => {
const newCameraPermission = await Camera.requestCameraPermission();
console.log('Camera permission status:', newCameraPermission);

console.log('Devices:', devices);

const cameraDevice = devices.back;
setDevice(cameraDevice);
};

fetchCameraDevice();
}, [devices]);

return (

{device && (

)}

);
};

Babel:
module.exports = function(api) {
api.cache(true);
return{
presets: ['module:metro-react-native-babel-preset'],
plugins: [
['react-native-reanimated/plugin',
{
globals: ['__scanOCR'],
}
],
],
};
};

dependencies:
"dependencies": {
"@react-native-firebase/app": "^18.1.0",
"@react-native-firebase/database": "^18.1.0",
"@react-native-firebase/firestore": "^18.1.0",
"@react-native-picker/picker": "^2.4.10",
"@react-navigation/bottom-tabs": "^6.5.7",
"@react-navigation/material-top-tabs": "^6.6.3",
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.17",
"accordion-collapse-react-native": "^1.1.1",
"date-fns": "^2.30.0",
"native-base": "^3.4.28",
"react": "18.2.0",
"react-native": "0.71.8",
"react-native-autocomplete-dropdown": "^3.0.2",
"react-native-collapsible": "^1.6.1",
"react-native-gesture-handler": "^2.12.0",
"react-native-modal-filter-picker": "^2.1.0",
"react-native-pager-view": "^6.2.0",
"react-native-paper": "^5.9.1",
"react-native-picker-select": "^8.0.4",
"react-native-progress-steps": "^1.3.4",
"react-native-reanimated": "^3.5.4",
"react-native-safe-area-context": "^4.5.3",
"react-native-screens": "^3.20.0",
"react-native-searchable-dropdown": "^1.1.3",
"react-native-searchable-picker": "^1.0.5",
"react-native-vector-icons": "^9.2.0",
"react-native-vision-camera": "^2.15.4",
"react-navigation": "^4.4.4",
"vision-camera-ocr": "^1.0.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/eslint-config": "^3.2.0",
"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.2.1",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.9",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
"jest": {
"preset": "react-native"
}
}

Error:

let workletRuntime = null
let createWorklet = () => {
throw new Error("Reanimated V3 is not installed, Frame Processors are not available!")
}

try {
const reanimated = require('react-native-reanimated')
if (reanimated.createWorkletRuntime == null) {
console.warn("Frame Processors are disabled because you're using an incompatible version of Reanimated.")
}
workletRuntime = reanimated.createWorkletRuntime('VisionCamera')
createWorklet = reanimated.makeShareableCloneRecursive
} catch {
// Frame Processors are not enabled
}

export const FrameProcessorContext = {
workletRuntime: workletRuntime,
createWorklet: createWorklet
}

This error too:

throw new Error([Reanimated] Tried to synchronously call a non-worklet function on the UI thread. See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#tried-to-synchronously-call-a-non-worklet-function-on-the-ui-thread` for more details.`);
};
fun.__remoteFunction = objectToUnpack;
return fun;
} else {
throw new Error('[Reanimated] Data type not recognized by value unpacker.');
}
}

type ValueUnpacker = WorkletFunction<
[objectToUnpack: any, category?: string],
any

;

if (DEV && IS_NATIVE) {
if (!('__workletHash' in valueUnpacker)) {
throw new Error('[Reanimated] valueUnpacker is not a worklet');
}
const closure = (valueUnpacker as ValueUnpacker).__closure;
if (closure !== undefined && Object.keys(closure).length !== 0) {
throw new Error('[Reanimated] valueUnpacker must have empty closure');
}
}

export function getValueUnpackerCode() {
return (valueUnpacker as ValueUnpacker).__initData.code;
}

Exist other lib which make this? I'm see which camera vision with many problems

@DusanSpasojevic98
Copy link

For me it was upgrading google-service to this: classpath("com.google.gms:google-services:4.3.15")
In build.gradle

@tiagojenuino
Copy link

Mine also has this upgrading, but it didn't work :(

@dsf3449
Copy link

dsf3449 commented Oct 19, 2023

@nth-zik

I figure out, the command work when run as root.

Using sudo worked for me too. But why?

@kannapoix
Copy link

Using sudo worked for me too, and I found a solution for my environment.

My .zshrc had the following variables and commenting out them solved the problem in my case.

export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib

I'm not familiar with the C/C++ build system, but these seems to be common solutions for building C programs with packages installed by homebrew on Apple Silicon machines(such as M1).

macos - Installing a C/C++ library with homebrew on M1 Macs - Ask Different

@nth-zik
Copy link

nth-zik commented Oct 20, 2023

Using sudo worked for me too, and I found a solution for my environment.

My .zshrc had the following variables and commenting out them solved the problem in my case.

export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib

I'm not familiar with the C/C++ build system, but these seems to be common solutions for building C programs with packages installed by homebrew on Apple Silicon machines(such as M1).

macos - Installing a C/C++ library with homebrew on M1 Macs - Ask Different

I'm not having this variables, but this a hint for me

@efe3535
Copy link
Author

efe3535 commented Oct 20, 2023

Using sudo worked for me too, and I found a solution for my environment.

My .zshrc had the following variables and commenting out them solved the problem in my case.

export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib

I'm not familiar with the C/C++ build system, but these seems to be common solutions for building C programs with packages installed by homebrew on Apple Silicon machines(such as M1).

macos - Installing a C/C++ library with homebrew on M1 Macs - Ask Different

Excellent! Works for me!

@hexadecy
Copy link

hexadecy commented Dec 4, 2023

It only compiles on my M1 with sudo. I suspect a change with cmake 3.22.1.

@cxa
Copy link

cxa commented Feb 23, 2024

This is due to the compiler system (CMake) find the wrong location for folly lib, before building, run command unset CPATH if echo $CPATH returns non empty value.

@MichalRemis
Copy link

I also finally made it work with:

unset LIBRARY_PATH
unset CPATH

and then all the cleaning commands above:

npx react-native-clean-project
cd android
rm -rf .gradle
# this will recursively force wipe any untracked files
git clean -dfx

..spent hours with it

@derynusaputra
Copy link

finally, I found a solution to this problem, you just need to remove the quotation marks in package.json which was originally ^3.10.0 to 3.10.0

@c-emil
Copy link

c-emil commented Oct 9, 2024

The caret before the version means that the package can be auto updated by a minor/patch version. That means that your package was probably updated in yarn.lock and you though you had 3.10.0. So in other words you just reverted the version to the exact 3.10.0. If this fixes the problem then it means that any higher minor/patch version of 3.10.0 have some breaking changes.

@JerryDeng0910
Copy link

JerryDeng0910 commented Nov 8, 2024

@nth-zik

I figure out, the command work when run as root.

Using sudo worked for me too. But why?

I have same issue.. Anyone can share me, sudo with what... I can't get the point

I am in Mackbook m1 pro, Reproduce the issue:

npx [email protected] init hello7210 --version 0.72.10
cd hello7210
yarn add [email protected]
yarn android

then it will throw:

  FAILED: ../../../../build/intermediates/cxx/Debug/r23i232k/obj/arm64-v8a/libreanimated.so 
  : && /Users/dengjianyuan/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/Users/dengjianyuan/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -DREACT_NATIVE_MINOR_VERSION=72 -DREANIMATED_VERSION=3.5.4 -DHERMES_ENABLE_DEBUGGER=1 -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++17 -Wall -Werror -DDEBUG -DJS_RUNTIME_HERMES=1 -g  -fno-limit-debug-info  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Qunused-arguments -Wl,--no-undefined -shared -Wl,-soname,libreanimated.so -o ../../../../build/intermediates/cxx/Debug/r23i232k/obj/arm64-v8a/libreanimated.so CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Fabric/PropsRegistry.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedCommitHook.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedCommitMarker.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedMountHook.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/RNRuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/WorkletRuntime.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/WorkletRuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/WorkletRuntimeRegistry.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/JSISerializer.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/JSLogger.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/JSScheduler.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedJSIUtils.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/UIRuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/UIScheduler.cpp.o CMakeFiles/reanimated.dir/Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/Common/cpp/Tools/WorkletEventHandler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidLogger.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/AndroidUIScheduler.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o CMakeFiles/reanimated.dir/src/main/cpp/TurboModule.cpp.o  -llog  -landroid  /Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/folly_runtime/libs/android.arm64-v8a/libfolly_runtime.so  /Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/glog/libs/android.arm64-v8a/libglog.so  /Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/jsi/libs/android.arm64-v8a/libjsi.so  /Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/reactnativejni/libs/android.arm64-v8a/libreactnativejni.so  /Users/dengjianyuan/.gradle/caches/transforms-3/34c2120d0d3cd8dc97826fc02c9e8fc4/transformed/jetified-fbjni-0.3.0/prefab/modules/fbjni/libs/android.arm64-v8a/libfbjni.so  /Users/dengjianyuan/.gradle/caches/transforms-3/f3f29de06a1f2dd645b021250fec95d4/transformed/jetified-hermes-android-0.72.10-debug/prefab/modules/libhermes/libs/android.arm64-v8a/libhermes.so  /Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/hermes_executor/libs/android.arm64-v8a/libhermes_executor.so   -latomic -lm && :
  ld: error: undefined symbol: folly::dynamic::dynamic(folly::dynamic&&)
  >>> referenced by NativeArray.h:40 (/Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/reactnativejni/include/react/jni/NativeArray.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeArray::NativeArray<folly::dynamic>(folly::dynamic&&))
  >>> referenced by NativeMap.h:40 (/Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/reactnativejni/include/react/jni/NativeMap.h:40)
  >>>               CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o:(facebook::react::NativeMap::NativeMap<folly::dynamic>(folly::dynamic&&))
  >>> did you mean: folly::dynamic::dynamic(folly::dynamic&&)
  >>> defined in: /Users/dengjianyuan/.gradle/caches/transforms-3/bb4a220a627d514d66d02d5d72e01726/transformed/jetified-react-android-0.72.10-debug/prefab/modules/folly_runtime/libs/android.arm64-v8a/libfolly_runtime.so
  clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.
  
  C++ build system [build] failed while executing:
      /Users/dengjianyuan/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
        /Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/android/.cxx/Debug/r23i232k/arm64-v8a \
        reanimated
    from /Users/dengjianyuan/work/projects/temp/hello7210/node_modules/react-native-reanimated/android

@JerryDeng0910
Copy link

JerryDeng0910 commented Nov 12, 2024

I got the sudo solution here, but don't know why..
sudo yarn android

@Poojaauma
Copy link

Task :expo-modules-core:buildCMakeRelWithDebInfo[armeabi-v7a]
Task :app:checkReleaseDuplicateClasses FAILED

Facing this issue in expo sdk 52 and react 0.76.5

> Task :app:checkReleaseDuplicateClasses FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.1.0.aar -> support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
     Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.1.0.aar -> support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
     Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.1.0.aar -> support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$CallbackHandler found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$ConnectionCallback found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$ConnectionCallback$ConnectionCallbackInternal found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$CustomActionCallback found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$CustomActionResultReceiver found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$ItemCallback found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$ItemReceiver found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImpl found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$1 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$2 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$3 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$4 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$5 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$6 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi21$7 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplApi23 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$1 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$2 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$3 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$4 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$5 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$6 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection$1 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserImplBase$MediaServiceConnection$2 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaBrowserServiceCallbackImpl found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaItem found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$MediaItem$1 found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$SearchCallback found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)
     Duplicate class android.support.v4.media.MediaBrowserCompat$SearchResultReceiver found in modules media-1.7.0.aar -> media-1.7.0-runtime (androidx.media:media:1.7.0) and support-media-compat-26.1.0.aar -> support-media-compat-26.1.0-runtime (com.android.support:support-media-compat:26.1.0)

@tomekzaw
Copy link
Member

tomekzaw commented Feb 4, 2025

Closing this issue due to inactivity.

If you stumble upon a similar error, upgrade Reanimated to the latest supported version (current latest is 3.16.7) or try the solution described in #4679 (comment).

@tomekzaw tomekzaw closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS
Projects
None yet
Development

No branches or pull requests