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

Build fails on Android with Reanimated 3.14.0 #208

Closed
leodev9 opened this issue Jul 24, 2024 · 2 comments · Fixed by #210
Closed

Build fails on Android with Reanimated 3.14.0 #208

leodev9 opened this issue Jul 24, 2024 · 2 comments · Fixed by #210

Comments

@leodev9
Copy link

leodev9 commented Jul 24, 2024

Hello!

Build fails if using Reanimated library.

I tried to build the app without these packages, then it builds but the app has quite a laggy feeling - at this point, it's hard to tell if it's because of an old Android phone (for testing purposes) or the problem is somewhere else.

MacOS: 14.4.1

Packages:

"react": "18.2.0",
"react-native": "^0.74.3",
"react-native-reanimated": "^3.14.0",
"react-native-v8": "^2.5.0",
"v8-android-jit": "^11.1000.4",

Here is the error that I got:

> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
C/C++: Please set them or make sure they are set and tested correctly in the CMake files:
C/C++: V8EXECUTOR_LIB
C/C++:     linked by target "reanimated" in directory /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android
C/C++: CMake Generate step failed.  Build files cannot be regenerated correctly.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.
> [CXX1429] error when building with cmake using /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/CMakeLists.txt: -- The C compiler identification is Clang 17.0.2
  -- The CXX compiler identification is Clang 17.0.2
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done
  -- Generating done

  C++ build system [configure] failed while executing:
      /Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake \
        -H/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android \
        -DCMAKE_SYSTEM_NAME=Android \
        -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
        -DCMAKE_SYSTEM_VERSION=23 \
        -DANDROID_PLATFORM=android-23 \
        -DANDROID_ABI=arm64-v8a \
        -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
        -DANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
        -DCMAKE_ANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
        -DCMAKE_TOOLCHAIN_FILE=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
        -DCMAKE_MAKE_PROGRAM=/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
        -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
        -DCMAKE_BUILD_TYPE=Debug \
        -DCMAKE_FIND_ROOT_PATH=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/prefab/arm64-v8a/prefab \
        -B/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/arm64-v8a \
        -GNinja \
        -DANDROID_STL=c++_shared \
        -DREACT_NATIVE_MINOR_VERSION=74 \
        -DANDROID_TOOLCHAIN=clang \
        -DREACT_NATIVE_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native \
        -DJS_RUNTIME=v8 \
        -DJS_RUNTIME_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-v8 \
        -DIS_NEW_ARCHITECTURE_ENABLED=false \
        -DIS_REANIMATED_EXAMPLE_APP=false \
        -DREANIMATED_VERSION=3.14.0 \
        -DHERMES_ENABLE_DEBUGGER=0
    from /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android
  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  Please set them or make sure they are set and tested correctly in the CMake files:
  V8EXECUTOR_LIB
      linked by target "reanimated" in directory /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android

  CMake Generate step failed.  Build files cannot be regenerated correctly. : com.android.ide.common.process.ProcessException: -- The C compiler identification is Clang 17.0.2
  -- The CXX compiler identification is Clang 17.0.2
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done
  -- Generating done

  C++ build system [configure] failed while executing:
      /Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake \
        -H/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android \
        -DCMAKE_SYSTEM_NAME=Android \
        -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
        -DCMAKE_SYSTEM_VERSION=23 \
        -DANDROID_PLATFORM=android-23 \
        -DANDROID_ABI=arm64-v8a \
        -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
        -DANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
        -DCMAKE_ANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
        -DCMAKE_TOOLCHAIN_FILE=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
        -DCMAKE_MAKE_PROGRAM=/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
        -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
        -DCMAKE_BUILD_TYPE=Debug \
        -DCMAKE_FIND_ROOT_PATH=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/prefab/arm64-v8a/prefab \
        -B/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/arm64-v8a \
        -GNinja \
        -DANDROID_STL=c++_shared \
        -DREACT_NATIVE_MINOR_VERSION=74 \
        -DANDROID_TOOLCHAIN=clang \
        -DREACT_NATIVE_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native \
        -DJS_RUNTIME=v8 \
        -DJS_RUNTIME_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-v8 \
        -DIS_NEW_ARCHITECTURE_ENABLED=false \
        -DIS_REANIMATED_EXAMPLE_APP=false \
        -DREANIMATED_VERSION=3.14.0 \
        -DHERMES_ENABLE_DEBUGGER=0
    from /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android
  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  Please set them or make sure they are set and tested correctly in the CMake files:
  V8EXECUTOR_LIB
      linked by target "reanimated" in directory /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android

  CMake Generate step failed.  Build files cannot be regenerated correctly.
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:288)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:108)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:106)
        at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess(ExecuteProcess.kt:106)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess$default(ExecuteProcess.kt:85)
        at com.android.build.gradle.tasks.CmakeQueryMetadataGenerator.executeProcess(CmakeFileApiMetadataGenerator.kt:59)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
        at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configureOneAbi(ExternalNativeJsonGenerator.kt:247)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configure(ExternalNativeJsonGenerator.kt:113)
        at com.android.build.gradle.tasks.ExternalNativeBuildJsonTask.doTaskAction(ExternalNativeBuildJsonTask.kt:90)
        at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:65)
        at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
        at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:63)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
        at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:244)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
        at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
        at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
        at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
        at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
        at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
        at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
        at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
        at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
        at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
        at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:67)
        at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:45)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
        at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
        at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
        at org.gradle.internal.Either$Right.fold(Either.java:175)
        at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:46)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:76)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:54)
        at java.base/java.util.Optional.orElseGet(Optional.java:364)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
        at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:49)
        at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:27)
        at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:71)
        at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:39)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:106)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55)
        at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64)
        at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43)
        at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125)
        at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56)
        at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
        at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75)
        at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41)
        at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35)
        at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289)
        at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31)
        at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22)
        at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
        at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67)
        at java.base/java.util.Optional.orElseGet(Optional.java:364)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
        at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
        at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1570)
  Caused by: com.android.ide.common.process.ProcessException: Error while executing process /Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake with arguments {-H/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=23 -DANDROID_PLATFORM=android-23 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 -DCMAKE_ANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 -DCMAKE_TOOLCHAIN_FILE=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_ROOT_PATH=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/prefab/arm64-v8a/prefab -B/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/arm64-v8a -GNinja -DANDROID_STL=c++_shared -DREACT_NATIVE_MINOR_VERSION=74 -DANDROID_TOOLCHAIN=clang -DREACT_NATIVE_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native -DJS_RUNTIME=v8 -DJS_RUNTIME_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-v8 -DIS_NEW_ARCHITECTURE_ENABLED=false -DIS_REANIMATED_EXAMPLE_APP=false -DREANIMATED_VERSION=3.14.0 -DHERMES_ENABLE_DEBUGGER=0}
        at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73)
        at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:277)
        ... 142 more
  Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake'' finished with non-zero exit value 1
        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442)
        at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
        ... 143 more


* Try:
> 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.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:130)
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:128)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
        at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
Caused by: com.android.builder.errors.EvalIssueException: [CXX1429] error when building with cmake using /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/CMakeLists.txt: -- The C compiler identification is Clang 17.0.2
-- The CXX compiler identification is Clang 17.0.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done

C++ build system [configure] failed while executing:
    /Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake \
      -H/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android \
      -DCMAKE_SYSTEM_NAME=Android \
      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
      -DCMAKE_SYSTEM_VERSION=23 \
      -DANDROID_PLATFORM=android-23 \
      -DANDROID_ABI=arm64-v8a \
      -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
      -DANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
      -DCMAKE_ANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
      -DCMAKE_TOOLCHAIN_FILE=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
      -DCMAKE_MAKE_PROGRAM=/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/ninja \
      -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
      -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
      -DCMAKE_BUILD_TYPE=Debug \
      -DCMAKE_FIND_ROOT_PATH=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/prefab/arm64-v8a/prefab \
      -B/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/arm64-v8a \
      -GNinja \
      -DANDROID_STL=c++_shared \
      -DREACT_NATIVE_MINOR_VERSION=74 \
      -DANDROID_TOOLCHAIN=clang \
      -DREACT_NATIVE_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native \
      -DJS_RUNTIME=v8 \
      -DJS_RUNTIME_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-v8 \
      -DIS_NEW_ARCHITECTURE_ENABLED=false \
      -DIS_REANIMATED_EXAMPLE_APP=false \
      -DREANIMATED_VERSION=3.14.0 \
      -DHERMES_ENABLE_DEBUGGER=0
  from /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
V8EXECUTOR_LIB
    linked by target "reanimated" in directory /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android

CMake Generate step failed.  Build files cannot be regenerated correctly. : com.android.ide.common.process.ProcessException: -- The C compiler identification is Clang 17.0.2
-- The CXX compiler identification is Clang 17.0.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done

C++ build system [configure] failed while executing:
    /Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake \
      -H/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android \
      -DCMAKE_SYSTEM_NAME=Android \
      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
      -DCMAKE_SYSTEM_VERSION=23 \
      -DANDROID_PLATFORM=android-23 \
      -DANDROID_ABI=arm64-v8a \
      -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
      -DANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
      -DCMAKE_ANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 \
      -DCMAKE_TOOLCHAIN_FILE=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake \
      -DCMAKE_MAKE_PROGRAM=/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/ninja \
      -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
      -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a \
      -DCMAKE_BUILD_TYPE=Debug \
      -DCMAKE_FIND_ROOT_PATH=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/prefab/arm64-v8a/prefab \
      -B/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/arm64-v8a \
      -GNinja \
      -DANDROID_STL=c++_shared \
      -DREACT_NATIVE_MINOR_VERSION=74 \
      -DANDROID_TOOLCHAIN=clang \
      -DREACT_NATIVE_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native \
      -DJS_RUNTIME=v8 \
      -DJS_RUNTIME_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-v8 \
      -DIS_NEW_ARCHITECTURE_ENABLED=false \
      -DIS_REANIMATED_EXAMPLE_APP=false \
      -DREANIMATED_VERSION=3.14.0 \
      -DHERMES_ENABLE_DEBUGGER=0
  from /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
V8EXECUTOR_LIB
    linked by target "reanimated" in directory /Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android

CMake Generate step failed.  Build files cannot be regenerated correctly.
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:288)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:108)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:106)
        at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess(ExecuteProcess.kt:106)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess$default(ExecuteProcess.kt:85)
        at com.android.build.gradle.tasks.CmakeQueryMetadataGenerator.executeProcess(CmakeFileApiMetadataGenerator.kt:59)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
        at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configureOneAbi(ExternalNativeJsonGenerator.kt:247)
        at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configure(ExternalNativeJsonGenerator.kt:113)
        at com.android.build.gradle.tasks.ExternalNativeBuildJsonTask.doTaskAction(ExternalNativeBuildJsonTask.kt:90)
        at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:65)
        at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
        at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:63)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
        at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:244)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
        at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
        at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
        at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
        at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
        at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
        at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
        at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
        at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
        at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
        at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
        at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
        at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
        at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
        at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:67)
        at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:45)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
        at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
        at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
        at org.gradle.internal.Either$Right.fold(Either.java:175)
        at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
        at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:46)
        at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:76)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:54)
        at java.base/java.util.Optional.orElseGet(Optional.java:364)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
        at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:49)
        at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:27)
        at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:71)
        at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:39)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:106)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55)
        at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64)
        at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43)
        at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125)
        at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56)
        at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
        at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75)
        at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41)
        at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35)
        at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289)
        at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31)
        at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22)
        at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
        at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67)
        at java.base/java.util.Optional.orElseGet(Optional.java:364)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
        at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
        at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: com.android.ide.common.process.ProcessException: Error while executing process /Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake with arguments {-H/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=23 -DANDROID_PLATFORM=android-23 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 -DCMAKE_ANDROID_NDK=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125 -DCMAKE_TOOLCHAIN_FILE=/Users/homeUser/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/6y3js4uo/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_ROOT_PATH=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/prefab/arm64-v8a/prefab -B/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-reanimated/android/.cxx/Debug/6y3js4uo/arm64-v8a -GNinja -DANDROID_STL=c++_shared -DREACT_NATIVE_MINOR_VERSION=74 -DANDROID_TOOLCHAIN=clang -DREACT_NATIVE_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native -DJS_RUNTIME=v8 -DJS_RUNTIME_DIR=/Users/homeUser/Desktop/Projects/mobile-app/node_modules/react-native-v8 -DIS_NEW_ARCHITECTURE_ENABLED=false -DIS_REANIMATED_EXAMPLE_APP=false -DREANIMATED_VERSION=3.14.0 -DHERMES_ENABLE_DEBUGGER=0}
        at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73)
        at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48)
        at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:277)
        ... 142 more
Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/homeUser/Library/Android/sdk/cmake/3.22.1/bin/cmake'' finished with non-zero exit value 1
        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442)
        at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
        ... 143 more

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.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 8s
714 actionable tasks: 23 executed, 691 up-to-date

I will appreciate for looking into this issue.

@reinismu
Copy link
Contributor

Investigated a bit.

Build fails because of this https://github.com/software-mansion/react-native-reanimated/blob/183add4d329660f6064e4195a4ef6559da097c9a/packages/react-native-reanimated/android/CMakeLists.txt#L131
Changing it to file (GLOB V8_SO_DIR "${JS_RUNTIME_DIR}/android/build/intermediates/library_jni/**/*/jni/${ANDROID_ABI}") will allow cmake to find the lib.

Now application will compile, but at any reanimated encounter will crash.
From stacktrace it seems to deadlock when trying to call v8

"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x718713a0 self=0xe6780010
  | sysTid=6292 nice=-4 cgrp=top-app sched=0/0 handle=0xf4c7a478
  | state=S schedstat=( 1824601043 522520496 6879 ) utm=150 stm=31 core=2 HZ=100
  | stack=0xff32a000-0xff32c000 stackSize=8192KB
  | held mutexes=
  native: #00 pc 00000b97  [vdso] (__kernel_vsyscall+7)
  native: #01 pc 0005ad68  /apex/com.android.runtime/lib/bionic/libc.so (syscall+40)
  native: #02 pc 0007725e  /apex/com.android.runtime/lib/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+142)
  native: #03 pc 000e7bcd  /apex/com.android.runtime/lib/bionic/libc.so (NonPI::MutexLockWithTimeout(pthread_mutex_internal_t*, bool, timespec const*)+333)
  native: #04 pc 000e78cb  /apex/com.android.runtime/lib/bionic/libc.so (pthread_mutex_lock+171)
  native: #05 pc 00b4dd8b  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libv8android.so (offset 283c000) (v8::base::RecursiveMutex::Lock()+27)
  native: #06 pc 00dc66e9  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libv8android.so (offset 283c000) (v8::Locker::Initialize(v8::Isolate*)+89)
  native: #07 pc 001149e5  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libv8executor.so (offset 486c000) (rnv8::V8Runtime::global()+101)
  native: #08 pc 002604a6  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (facebook::jsi::RuntimeDecorator<facebook::jsi::Runtime, facebook::jsi::Runtime>::global()+86)
  native: #09 pc 0025b723  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (facebook::jsi::WithRuntimeDecorator<reanimated::AroundLock, facebook::jsi::Runtime, facebook::jsi::Runtime>::global()+99)
  native: #10 pc 0000f5c4  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libjsi.so (offset 2268000) (facebook::jsi::Runtime::createValueFromJsonUtf8(unsigned char const*, unsigned int)+52)
  native: #11 pc 003a438b  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (facebook::jsi::Value::createFromJsonUtf8(facebook::jsi::Runtime&, unsigned char const*, unsigned int)+91)
  native: #12 pc 0039dcd8  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (reanimated::NativeProxy::handleEvent(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)+568)
  native: #13 pc 003b7c31  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)> reanimated::NativeProxy::bindThis<void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >(void (reanimated::NativeProxy::*)(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>))::'lambda'(facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&)::operator()(facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&) const+209)
  native: #14 pc 003b7b2f  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (???)
  native: #15 pc 003b7a4f  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (void std::__ndk1::__invoke_void_return_wrapper<void, true>::__call<std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)> reanimated::NativeProxy::bindThis<void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >(void (reanimated::NativeProxy::*)(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>))::'lambda'(facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&)&, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >(std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)> reanimated::NativeProxy::bindThis<void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >(void (reanimated::NativeProxy::*)(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>))::'lambda'(facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&)&, facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&)+79)
  native: #16 pc 003b79ce  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (???)
  native: #17 pc 003b5c92  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (std::__ndk1::__function::__func<std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)> reanimated::NativeProxy::bindThis<void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >(void (reanimated::NativeProxy::*)(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>))::'lambda'(facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&), std::__ndk1::allocator<std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)> reanimated::NativeProxy::bindThis<void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >(void (reanimated::NativeProxy::*)(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>))::'lambda'(facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&)>, void (facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)>::operator()(facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&)+82)
  native: #18 pc 0040e805  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (???)
  native: #19 pc 0040e758  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (std::__ndk1::function<void (facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)>::operator()(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>) const+72)
  native: #20 pc 0040e62c  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (reanimated::EventHandler::receiveEvent(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)+140)
  native: #21 pc 0040ec69  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (facebook::jni::detail::MethodWrapper<void (reanimated::EventHandler::*)(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>), &(reanimated::EventHandler::receiveEvent(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)), reanimated::EventHandler, void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&)+377)
  native: #22 pc 0040ee01  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (facebook::jni::detail::CallWithJniConversions<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&), void, facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >::call(facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, _jstring*, int, facebook::jni::detail::JTypeFor<facebook::react::WritableMap, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&))+241)
  native: #23 pc 0040e9e2  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (facebook::jni::detail::FunctionWrapper<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&), facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*, void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >::call(_JNIEnv*, _jobject*, _jstring*, int, facebook::jni::detail::JTypeFor<facebook::react::WritableMap, facebook::jni::JObject, void>::_javaobject*, void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::EventHandler, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, facebook::jni::alias_ref<facebook::jni::JString>&&, int&&, facebook::jni::alias_ref<facebook::react::WritableMap>&&))+114)
  native: #24 pc 0040e93e  /data/app/~~yUn35cyUKkgzKI_P4YfANQ==/plus.tritonpoker-jIXAHjV0QHvh6fRKZvz9cQ==/base.apk!libreanimated.so (offset 17e8000) (facebook::jni::detail::MethodWrapper<void (reanimated::EventHandler::*)(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>), &(reanimated::EventHandler::receiveEvent(facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap>)), reanimated::EventHandler, void, facebook::jni::alias_ref<facebook::jni::JString>, int, facebook::jni::alias_ref<facebook::react::WritableMap> >::call(_JNIEnv*, _jobject*, _jstring*, int, facebook::jni::detail::JTypeFor<facebook::react::WritableMap, facebook::jni::JObject, void>::_javaobject*)+110)
  native: #25 pc 00142132  /apex/com.android.art/lib/libart.so (art_quick_generic_jni_trampoline+82)
  native: #26 pc 0013b922  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+338)

@reinismu
Copy link
Contributor

Made minimal app that shows the bug https://github.com/reinismu/ReanimatedV8Deadlock

I'm not too sure but it seems that reanimated calls v8 engine from js thread in a way that deadlocks

@Kudo Kudo closed this as completed in #210 Aug 20, 2024
@Kudo Kudo closed this as completed in 8733225 Aug 20, 2024
dlee added a commit to dlee/react-native-reanimated that referenced this issue Oct 17, 2024
…error

Using v8 javascript engine was causing react-native-reanimated gradle build to fail:
software-mansion#3570

Changing the `V8_SO_DIR` according to the recommendation from @reinismu fixes this:
Kudo/react-native-v8#208 (comment)
github-merge-queue bot pushed a commit to software-mansion/react-native-reanimated that referenced this issue Dec 9, 2024
…xt (#6603)

Using v8 javascript engine was causing react-native-reanimated gradle
build to fail:
#3570

Changing the `V8_SO_DIR` according to the recommendation from @reinismu
fixes this:
Kudo/react-native-v8#208 (comment)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Fixes #3570

## Test plan

I'm not sure how the current CI is passing
(#3570 (comment)),
but that would be the way to test it.

---------

Co-authored-by: Tomasz Żelawski <40713406+tjzel@users.noreply.github.com>
tjzel added a commit to software-mansion/react-native-reanimated that referenced this issue Dec 13, 2024
…xt (#6603)

Using v8 javascript engine was causing react-native-reanimated gradle
build to fail:
#3570

Changing the `V8_SO_DIR` according to the recommendation from @reinismu
fixes this:
Kudo/react-native-v8#208 (comment)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Fixes #3570

## Test plan

I'm not sure how the current CI is passing
(#3570 (comment)),
but that would be the way to test it.

---------

Co-authored-by: Tomasz Żelawski <40713406+tjzel@users.noreply.github.com>
tjzel added a commit to software-mansion/react-native-reanimated that referenced this issue Dec 13, 2024
…xt (#6603)

Using v8 javascript engine was causing react-native-reanimated gradle
build to fail:
#3570

Changing the `V8_SO_DIR` according to the recommendation from @reinismu
fixes this:
Kudo/react-native-v8#208 (comment)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Fixes #3570

## Test plan

I'm not sure how the current CI is passing
(#3570 (comment)),
but that would be the way to test it.

---------

Co-authored-by: Tomasz Żelawski <40713406+tjzel@users.noreply.github.com>
tjzel added a commit to software-mansion/react-native-reanimated that referenced this issue Dec 13, 2024
…xt (#6603)

Using v8 javascript engine was causing react-native-reanimated gradle
build to fail:
#3570

Changing the `V8_SO_DIR` according to the recommendation from @reinismu
fixes this:
Kudo/react-native-v8#208 (comment)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Fixes #3570

## Test plan

I'm not sure how the current CI is passing
(#3570 (comment)),
but that would be the way to test it.

---------

Co-authored-by: Tomasz Żelawski <40713406+tjzel@users.noreply.github.com>
tomekzaw pushed a commit to software-mansion/react-native-reanimated that referenced this issue Jan 9, 2025
…xt (#6603)

Using v8 javascript engine was causing react-native-reanimated gradle
build to fail:
#3570

Changing the `V8_SO_DIR` according to the recommendation from @reinismu
fixes this:
Kudo/react-native-v8#208 (comment)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Fixes #3570

## Test plan

I'm not sure how the current CI is passing
(#3570 (comment)),
but that would be the way to test it.

---------

Co-authored-by: Tomasz Żelawski <40713406+tjzel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants