react-native-reanimated: [Android]: unable to build 3.0.2 using RN 0.69.x or 0.70.x => undefined reference to facebook::hermes::HermesRuntime::getDebugger()
Description
What is this?
After updating to react-native-reanimated 3.0.2, running an Android release build is no longer working. The iOS build is working fine.
Further info
It looks like the problem is happening in ReanimatedHermesRuntime.cpp on line 55.
facebook::hermes::HermesRuntime::getDebugger()
Notes
- this has been observed when using React Native 0.69 and React Native 0.70 with version 3.0.x of react native reanimated.
- this is not happening with react-native-reanimated 2.x.x (latest v2) but I can’t use this because it keeps crashing on iOS.
- Hermes is enabled for both iOS and Android.
- Using Java 19.0.2 2023-01-17
- My machine is an M1 Macbook Pro running macOS Ventura 13.2.1
Output with more details
> Task :react-native-reanimated:createNativeDepsDirectories UP-TO-DATE
> Skipping task ':react-native-reanimated:createNativeDepsDirectories' as it has no actions.
> Resolve mutations for :react-native-reanimated:resolveBoost (Thread[#103,Execution worker Thread 2,5,main]) started.
> :react-native-reanimated:resolveBoost (Thread[#103,Execution worker Thread 2,5,main]) started.
> Task :react-native-reanimated:resolveBoost SKIPPED
> Skipping task ':react-native-reanimated:resolveBoost' as task onlyIf 'Task satisfies onlyIf closure' is false.
> Resolve mutations for :react-native-reanimated:downloadBoost (Thread[#103,Execution worker Thread 2,5,main]) started.
> :react-native-reanimated:downloadBoost (Thread[#103,Execution worker Thread 2,5,main]) started.
> Resolve mutations for :react-native-reanimated:resolveDoubleConversion (Thread[#107,Execution worker Thread 6,5,main]) started.
> Resolve mutations for :react-native-reanimated:resolveFolly (Thread[#107,Execution worker Thread 6,5,main]) started.
> Resolve mutations for :react-native-reanimated:resolveGlog (Thread[#107,Execution worker Thread 6,5,main]) started.
> Resolve mutations for :react-native-reanimated:unpackReactNativeAAR (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-reanimated:unpackReactNativeAAR (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:unpackReactNativeAAR UP-TO-DATE
> Skipping task ':react-native-reanimated:unpackReactNativeAAR' as it has no actions.
> Resolve mutations for :react-native-reanimated:mergeDebugJniLibFolders (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-reanimated:mergeDebugJniLibFolders (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:mergeDebugJniLibFolders UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:mergeDebugJniLibFolders' because:
> Build cache is disabled
> Skipping task ':react-native-reanimated:mergeDebugJniLibFolders' as it is up-to-date.
> Resolve mutations for :react-native-send-intent:mergeDebugJniLibFolders (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-send-intent:mergeDebugJniLibFolders (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:downloadHermes UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:downloadHermes' because:
> Build cache is disabled
> Task ':react-native-reanimated:downloadHermes' is not up-to-date because:
> Task.upToDateWhen is false.
> Download https://github.com/facebook/hermes/tarball/hermes-2022-09-14-RNv0.70.1-2a6b111ab289b55d7b78b5fdf105f466ba270fd7
> Destination file already exists. Skipping 'hermes.tar.gz'
> Task :react-native-reanimated:downloadBoost UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:downloadBoost' because:
> Build cache is disabled
> Task ':react-native-reanimated:downloadBoost' is not up-to-date because:
> Task.upToDateWhen is false.
> Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
> Destination file already exists. Skipping 'boost_1_76_0.tar.gz'
> Task :react-native-send-intent:mergeDebugJniLibFolders UP-TO-DATE
> Caching disabled for task ':react-native-send-intent:mergeDebugJniLibFolders' because:
> Build cache is disabled
> Skipping task ':react-native-send-intent:mergeDebugJniLibFolders' as it is up-to-date.
> Resolve mutations for :react-native-reanimated:unzipHermes (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-reanimated:unzipHermes (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:unzipHermes UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:unzipHermes' because:
> Build cache is disabled
> Skipping task ':react-native-reanimated:unzipHermes' as it is up-to-date.
> Resolve mutations for :react-native-reanimated:prepareHermes (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-reanimated:prepareHermes (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:prepareHermes
> Caching disabled for task ':react-native-reanimated:prepareHermes' because:
> Build cache is disabled
> Task ':react-native-reanimated:prepareHermes' is not up-to-date because:
> Task has not declared any outputs despite executing actions.
> file or directory '/Users/snip/code/my-lovely-aspp/node_modules/react-native/ReactAndroid/src/main/jni/first-party/hermes/Android.mk', not found
> :react-native-reanimated:resolveDoubleConversion (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:resolveDoubleConversion SKIPPED
> Skipping task ':react-native-reanimated:resolveDoubleConversion' as task onlyIf 'Task satisfies onlyIf closure' is false.
> Resolve mutations for :react-native-reanimated:downloadDoubleConversion (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-reanimated:downloadDoubleConversion (Thread[#107,Execution worker Thread 6,5,main]) started.
> Resolve mutations for :react-native-reanimated:prepareBoost (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:prepareBoost (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:downloadDoubleConversion UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:downloadDoubleConversion' because:
> Build cache is disabled
> Task ':react-native-reanimated:downloadDoubleConversion' is not up-to-date because:
> Task.upToDateWhen is false.
> Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz
> Destination file already exists. Skipping 'double-conversion-1.1.6.tar.gz'
> Task :react-native-reanimated:prepareBoost UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:prepareBoost' because:
> Build cache is disabled
> Skipping task ':react-native-reanimated:prepareBoost' as it is up-to-date.
> :react-native-reanimated:resolveFolly (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:resolveFolly SKIPPED
> Skipping task ':react-native-reanimated:resolveFolly' as task onlyIf 'Task satisfies onlyIf closure' is false.
> Resolve mutations for :react-native-reanimated:downloadFolly (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:downloadFolly (Thread[#104,Execution worker Thread 3,5,main]) started.
> Resolve mutations for :react-native-reanimated:prepareDoubleConversion (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-reanimated:prepareDoubleConversion (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:downloadFolly UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:downloadFolly' because:
> Build cache is disabled
> Task ':react-native-reanimated:downloadFolly' is not up-to-date because:
> Task.upToDateWhen is false.
> Download https://github.com/facebook/folly/archive/v2021.07.22.00.tar.gz
> Destination file already exists. Skipping 'folly-2021.07.22.00.tar.gz'
> Task :react-native-reanimated:prepareDoubleConversion UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:prepareDoubleConversion' because:
> Build cache is disabled
> Skipping task ':react-native-reanimated:prepareDoubleConversion' as it is up-to-date.
> :react-native-reanimated:resolveGlog (Thread[#107,Execution worker Thread 6,5,main]) started.
> Task :react-native-reanimated:resolveGlog SKIPPED
> Skipping task ':react-native-reanimated:resolveGlog' as task onlyIf 'Task satisfies onlyIf closure' is false.
> Resolve mutations for :react-native-reanimated:downloadGlog (Thread[#107,Execution worker Thread 6,5,main]) started.
> :react-native-reanimated:downloadGlog (Thread[#107,Execution worker Thread 6,5,main]) started.
> Resolve mutations for :react-native-reanimated:prepareFolly (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:prepareFolly (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:downloadGlog UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:downloadGlog' because:
> Build cache is disabled
> Task ':react-native-reanimated:downloadGlog' is not up-to-date because:
> Task.upToDateWhen is false.
> Download https://github.com/google/glog/archive/v0.3.5.tar.gz
> Destination file already exists. Skipping 'glog-0.3.5.tar.gz'
> Task :react-native-reanimated:prepareFolly UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:prepareFolly' because:
> Build cache is disabled
> Skipping task ':react-native-reanimated:prepareFolly' as it is up-to-date.
> Resolve mutations for :react-native-reanimated:downloadNdkBuildDependencies (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:downloadNdkBuildDependencies (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:downloadNdkBuildDependencies UP-TO-DATE
> Skipping task ':react-native-reanimated:downloadNdkBuildDependencies' as it has no actions.
> Resolve mutations for :react-native-reanimated:prepareGlog (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:prepareGlog (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:prepareGlog UP-TO-DATE
> Caching disabled for task ':react-native-reanimated:prepareGlog' because:
> Build cache is disabled
> Skipping task ':react-native-reanimated:prepareGlog' as it is up-to-date.
> Resolve mutations for :react-native-reanimated:prepareThirdPartyNdkHeaders (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:prepareThirdPartyNdkHeaders (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:prepareThirdPartyNdkHeaders UP-TO-DATE
> Skipping task ':react-native-reanimated:prepareThirdPartyNdkHeaders' as it has no actions.
> Resolve mutations for :react-native-reanimated:extractAARHeaders (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:extractAARHeaders (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:extractAARHeaders
> Caching disabled for task ':react-native-reanimated:extractAARHeaders' because:
> Build cache is disabled
> Task ':react-native-reanimated:extractAARHeaders' is not up-to-date because:
> Task has not declared any outputs despite executing actions.
> Resolve mutations for :react-native-reanimated:extractSOFiles (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:extractSOFiles (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:extractSOFiles
> Caching disabled for task ':react-native-reanimated:extractSOFiles' because:
> Build cache is disabled
> Task ':react-native-reanimated:extractSOFiles' is not up-to-date because:
> Task has not declared any outputs despite executing actions.
> Resolve mutations for :react-native-reanimated:configureCMakeDebug[arm64-v8a] (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:configureCMakeDebug[arm64-v8a] (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a]
> Caching disabled for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]' because:
> Build cache is disabled
> Task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]' is not up-to-date because:
> Task.upToDateWhen is false.
> C/C++: /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/CMakeLists.txt debug|arm64-v8a : Start JSON generation. Platform version: 23 min SDK version: arm64-v8a
> C/C++: /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/CMakeLists.txt debug|arm64-v8a : JSON '/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a/android_gradle_build.json' was up-to-date
> C/C++: /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/CMakeLists.txt debug|arm64-v8a : JSON generation completed without problems
> C/C++: /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/CMakeLists.txt debug|arm64-v8a : Writing build model to /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/build/intermediates/cxx/Debug/4e6d666a/meta/arm64-v8a/build_model.json
> Resolve mutations for :react-native-reanimated:buildCMakeDebug[arm64-v8a] (Thread[#104,Execution worker Thread 3,5,main]) started.
> :react-native-reanimated:buildCMakeDebug[arm64-v8a] (Thread[#104,Execution worker Thread 3,5,main]) started.
> Task :react-native-reanimated:buildCMakeDebug[arm64-v8a]
> Caching disabled for task ':react-native-reanimated:buildCMakeDebug[arm64-v8a]' because:
> Build cache is disabled
> Task ':react-native-reanimated:buildCMakeDebug[arm64-v8a]' is not up-to-date because:
> Task.upToDateWhen is false.
> C/C++: starting build
> C/C++: reading expected JSONs
> C/C++: done reading expected JSONs
> C/C++: executing build commands for targets that produce .so files or executables
> C/C++: evaluate miniconfig
> C/C++: evaluate library reanimated (arm64-v8a)
> C/C++: building target library reanimated because no targets are specified.
> C/C++: about to build targets reanimated
> C/C++: Executable : /Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja
> arguments :
> -C
> /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a
> reanimated
> jvmArgs :
C/C++: Build reanimated_arm64-v8a
C/C++: Executable : /Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja
arguments :
-C
/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a
reanimated
jvmArgs :
Starting process 'command '/Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja''. Working directory: /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android Command: /Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja -C /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a reanimated
Successfully started process 'command '/Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja''
C/C++: ninja: Entering directory `/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a'
C/C++: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
> Task :react-native-reanimated:buildCMakeDebug[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':react-native-reanimated:buildCMakeDebug[arm64-v8a]'.
> Build command failed.
> Error while executing process /Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja with arguments {-C /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a reanimated}
> ninja: Entering directory `/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a'
[0/2] Re-checking globbed directories...
[1/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidErrorHandler.cpp.o
[2/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidScheduler.cpp.o
[3/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o
[4/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o
[5/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o
[6/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o
[7/7] Linking CXX shared library ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so
FAILED: ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so
: && /Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --gcc-toolchain=/Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_HAVE_MEMRCHR=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DREACT_NATIVE_MINOR_VERSION=70 -DREANIMATED_VERSION=3.0.2 -DHERMES_ENABLE_DEBUGGER=1 -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++17 -Wall -Werror -DDEBUG -DJS_RUNTIME_HERMES=1 -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libreanimated.so -o ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedUIManagerBinding.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Registries/NewestShadowNodesRegistry.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/JsiUtils.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/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 -L/Users/snip/code/my-lovely-aspp/node_modules/react-native/ReactAndroid/src/main/jni/first-party/react/jni/arm64-v8a -L/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/build/third-party-ndk/hermes/jni/arm64-v8a -llog -landroid -ljsi -lglog -lfbjni -lfolly_runtime -lreactnativejni -lhermes -lhermes-executor-debug -latomic -lm && :
CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o: In function `reanimated::HermesExecutorRuntimeAdapter::getDebugger()':
> /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp:55: undefined reference to `facebook::hermes::HermesRuntime::getDebugger()'
> clang++: error: linker command failed with exit code 1 (use -v to see invocation)
> ninja: build stopped: subcommand failed.
- Try:
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
- Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-reanimated:buildCMakeDebug[arm64-v8a]'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:140)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
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:57)
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:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
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:69)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:309)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:302)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:288)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:462)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
Caused by: org.gradle.internal.UncheckedException: Build command failed.
Error while executing process /Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja with arguments {-C /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a reanimated}
ninja: Entering directory `/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a'
[0/2] Re-checking globbed directories...
[1/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidErrorHandler.cpp.o
[2/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidScheduler.cpp.o
[3/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o
[4/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o
[5/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o
[6/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o
[7/7] Linking CXX shared library ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so
FAILED: ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so
: && /Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --gcc-toolchain=/Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_HAVE_MEMRCHR=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DREACT_NATIVE_MINOR_VERSION=70 -DREANIMATED_VERSION=3.0.2 -DHERMES_ENABLE_DEBUGGER=1 -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++17 -Wall -Werror -DDEBUG -DJS_RUNTIME_HERMES=1 -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libreanimated.so -o ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedUIManagerBinding.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Registries/NewestShadowNodesRegistry.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/JsiUtils.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/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 -L/Users/snip/code/my-lovely-aspp/node_modules/react-native/ReactAndroid/src/main/jni/first-party/react/jni/arm64-v8a -L/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/build/third-party-ndk/hermes/jni/arm64-v8a -llog -landroid -ljsi -lglog -lfbjni -lfolly_runtime -lreactnativejni -lhermes -lhermes-executor-debug -latomic -lm && :
CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o: In function `reanimated::HermesExecutorRuntimeAdapter::getDebugger()':
/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp:55: undefined reference to `facebook::hermes::HermesRuntime::getDebugger()'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:68)
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:128)
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:236)
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:221)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:204)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:187)
at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:165)
at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:89)
at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:40)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:53)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:50)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
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:50)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:40)
at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:68)
at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:38)
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.CreateOutputsStep.execute(CreateOutputsStep.java:51)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:29)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionStep.java:124)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:80)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:58)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:36)
at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:181)
at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:71)
at org.gradle.internal.Either$Right.fold(Either.java:175)
at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:69)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:47)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:110)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:56)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:56)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:73)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:44)
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.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:89)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:50)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:102)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:57)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:76)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:50)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNoEmptySources(SkipEmptyWorkStep.java:254)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:91)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:56)
at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:43)
at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:31)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40)
at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:281)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:44)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:33)
at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:139)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
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:57)
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:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
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:69)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:309)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:302)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:288)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:462)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
Caused by: Build command failed.
Error while executing process /Users/snip/Library/Android/sdk/cmake/3.18.1/bin/ninja with arguments {-C /Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a reanimated}
ninja: Entering directory `/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/.cxx/Debug/4e6d666a/arm64-v8a'
[0/2] Re-checking globbed directories...
[1/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidErrorHandler.cpp.o
[2/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/AndroidScheduler.cpp.o
[3/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/LayoutAnimations.cpp.o
[4/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/JNIHelper.cpp.o
[5/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/OnLoad.cpp.o
[6/7] Building CXX object CMakeFiles/reanimated.dir/src/main/cpp/NativeProxy.cpp.o
[7/7] Linking CXX shared library ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so
FAILED: ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so
: && /Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --gcc-toolchain=/Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/snip/Library/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_HAVE_MEMRCHR=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DREACT_NATIVE_MINOR_VERSION=70 -DREANIMATED_VERSION=3.0.2 -DHERMES_ENABLE_DEBUGGER=1 -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++17 -Wall -Werror -DDEBUG -DJS_RUNTIME_HERMES=1 -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libreanimated.so -o ../../../../build/intermediates/cxx/Debug/4e6d666a/obj/arm64-v8a/libreanimated.so CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/FabricUtils.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedUIManagerBinding.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Fabric/ShadowTreeCloner.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/LayoutAnimations/LayoutAnimationsManager.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModule.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedRuntime.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Registries/EventHandlerRegistry.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Registries/NewestShadowNodesRegistry.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/SharedItems/Shareables.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/FeaturesConfig.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/JsiUtils.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/ReanimatedVersion.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/RuntimeDecorator.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/Tools/Scheduler.cpp.o CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/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 -L/Users/snip/code/my-lovely-aspp/node_modules/react-native/ReactAndroid/src/main/jni/first-party/react/jni/arm64-v8a -L/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/android/build/third-party-ndk/hermes/jni/arm64-v8a -llog -landroid -ljsi -lglog -lfbjni -lfolly_runtime -lreactnativejni -lhermes -lhermes-executor-debug -latomic -lm && :
CMakeFiles/reanimated.dir/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp.o: In function `reanimated::HermesExecutorRuntimeAdapter::getDebugger()':
/Users/snip/code/my-lovely-aspp/node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/ReanimatedHermesRuntime.cpp:55: undefined reference to `facebook::hermes::HermesRuntime::getDebugger()'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:126)
at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:149)
at com.android.build.gradle.internal.cxx.build.CxxRegularBuilder.executeProcessBatch(CxxRegularBuilder.kt:363)
at com.android.build.gradle.internal.cxx.build.CxxRegularBuilder.build(CxxRegularBuilder.kt:140)
at com.android.build.gradle.tasks.ExternalNativeBuildTask$doTaskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:70)
at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
at com.android.build.gradle.tasks.ExternalNativeBuildTask.doTaskAction(ExternalNativeBuildTask.kt:136)
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:61)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
... 112 more
- Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.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/7.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 38s
673 actionable tasks: 8 executed, 665 up-to-date
Watched directory hierarchies: [/Users/snip/code/my-lovely-aspp/node_modules/react-native-gradle-plugin, /Users/snip/code/my-lovely-aspp/android]
Steps to reproduce
- tried cleaning out node_modules/
- ran
./gradelw clean
from inside theandroid
directory - reran the build task to try to rebuild the project (Android)
Snack or a link to a repository
none
Reanimated version
3.0.2
React Native version
0.69.9 and 0.70.8
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Release mode
Device
None
Device model
none
Acknowledgements
Yes
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 22 (6 by maintainers)
have uploaded all AAR and JRC files here on this repo: rn-reanimated-aar-files tested:
"react-native": "0.71.x"
,"react-native-reanimated": "^2.14.1"
or"react-native-reanimated": "^2.10.0"
WORKING 🤘
I haven’t tried making a build with Android Studio, I tried it by running
npm run android
, but it failed every time. I will give it a go with Android Studio as well and update you.I started hitting this error yesterday, too. But I was the only person on my team of 5 devs to encounter it.
I think I solved my issue but I don’t really understand how/why but hopefully it helps others. I was following this answer for reference
In
android/app/build.gradle
inside ofandroid {}
, I added this lines:Then I created a
local.properties
file insideandroid/
and added this line:Ran
./gradlew clean
and then was able to build again 🤷Strangely I’ve found that I can comment out those lines I added above, re-run
./gradlew clean
, and the app continues to build fine.@matfin disregard my comment above, you’re properly falling into the else statement.