Closed aliza-khu closed 10 months ago
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
@aliza-khu Thanks for submitting this issue. What is the path to Ninja or CMake bin folder on your CI? Is it included in PATH
environmental variable? Is this even installed?
@tomekzaw, Here is the Answer to the query you asked:
/usr/bin/cmake
is the path of CMake./home/circleci/.yarn/bin:/home/circleci/android-sdk/emulator:/home/circleci/android-sdk/cmdline-tools/latest/bin:/home/circleci/android-sdk/tools:/home/circleci/android-sdk/tools/bin:/home/circleci/android-sdk/platform-tools:/home/circleci/android-sdk/platform-tools/bin:/usr/local/apache-maven/bin:/home/circleci/bin:/home/circleci/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/gradle-8.5/bin
@tomekzaw, If I execute the below script under my current script
- run:
name: Install Ninja
command: |
sudo apt-get update && sudo apt-get install -y ninja-build
- run:
name: Install CMake
command: |
wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-Linux-x86_64.tar.gz
tar -xzvf cmake-3.22.1-Linux-x86_64.tar.gz -C $HOME
export PATH=$HOME/ninja:$HOME/cmake-3.22.1-Linux-x86_64/bin:$PATH
- run:
name: Set CMake and Ninja Paths
command: |
export PATH=$HOME/ninja:$HOME/cmake-3.22.1-Linux-x86_64/bin:$PATH
- run:
name: Accept Android SDK Licenses
command: yes | sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi;
then I got rid of Could not find Ninja on PATH or in SDK CMake bin folders
. but now facing a new issue:
> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
[CXX1210] /home/circleci/react-native/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
Can you please share the solution to this?
@tomekzaw, Can you please let me know what's the next step? It seems like the react-native-reanimated library does not support react-native: 0.73.0. isn't it?
@aliza-khu Reanimated 3.6.1 supports React Native 0.73.0.
Regarding the error release|arm64-v8a : No compatible library found
, can you share the rest of the logs?
@tomekzaw, Here you go:
> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a]'.
> [CXX1210] /home/circleci/react-native/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 48s
71 actionable tasks: 32 executed, 39 up-to-date
\e[0m
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
from /usr/lib/ruby/3.0.0/forwardable.rb:238:in `sh'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/helper/gradle_helper.rb:32:in `trigger'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/actions/gradle.rb:60:in `run'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:18:in `block (2 levels) in parsing_binding'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/bin/fastlane:23:in `<top (required)>'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/bin/fastlane:25:in `load'
from /home/circleci/react-native/android/vendor/bundle/ruby/3.0.0/bin/fastlane:25:in `<main>'
Exited with code exit status 1
@tomekzaw, 👆
@aliza-khu Not sure what exactly this error means but can you try renaming project directory react-native
to something different?
-/home/circleci/react-native
+/home/circleci/<something else here>
Reanimated searches for react-native
directory (the one inside node_modules
) but if your app project directory has the same name, it can be ambiguous. Let me know if it helps.
@tomekzaw, I changed the project directory name from react-native to seh but still getting the same issue.
> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a]'.
> [CXX1210] /home/circleci/seh/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 38s
71 actionable tasks: 32 executed, 39 up-to-date
\e[0m
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
from /usr/lib/ruby/3.0.0/forwardable.rb:238:in `sh'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/helper/gradle_helper.rb:32:in `trigger'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/actions/gradle.rb:60:in `run'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:18:in `block (2 levels) in parsing_binding'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/gems/fastlane-2.205.0/bin/fastlane:23:in `<top (required)>'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/bin/fastlane:25:in `load'
from /home/circleci/seh/android/vendor/bundle/ruby/3.0.0/bin/fastlane:25:in `<main>'
Exited with code exit status 1
@aliza-khu Thanks for checking. Are you using some flags to choose which Android architectures to build? Something like reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
in gradle.properties
?
@tomekzaw, Yes, I am using it in gradle,properties file.
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
@tomekzaw, Do I need to make any changes to that?
@aliza-khu Nope, that's fine. I've run out of ideas at this point 😢
@tomekzaw, Let me know if you have any suggestions regarding this Problem.
@tomekzaw, I noticed that when CircleCI fire the below command
./gradlew androidDependencies
I am getting the below log while executing with react-native-reanimated: 2.14.4 [Success]
Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
/home/circleci/react-native/node_modules/react-native-reanimated/android/react-native-reanimated-71-hermes.aar
And I am not getting the same log while executing with react-native-reanimated: 3.6.1 [Current] is that the reason behind build failure with
> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
[CXX1210] /home/circleci/react-native/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
@aliza-khu That's because Reanimated 3 has no AARs.
I am also getting a similar kind of error on the CircleCI builds but with a different library.
1: Task failed with an exception.
-----------
* Where:
Script '/home/circleci/project/node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle' line: 356
* What went wrong:
A problem occurred evaluating project ':expo'.
> A problem occurred configuring project ':expo-av'.
> [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
The build is fine on my local machine but on circleCI it's not working. Even tried to downgrade gradle from 8.0.1 to 7.5.1 but still no luck!
@tomekzaw, JFYI: I switched the machine on CircleCI from Linux to Mac OS for Android and succeeded. I won't face any errors and able to generate the Android build. It seems like the react-native-reanimated library with 3.6.1 won't support for Linux System. Let me know if you can conclude on this.
Based on the information provided in this report (link here), it appears that the issue is not related to Reanimated but rather to the CircleCI environment configuration. Therefore, unless anyone objects, I will proceed to close the issue.
switched the machine on CircleCI from Linux to Mac OS
Can you share your specs?
I am currently using this and experienced the same issue
android-dev:
working_directory: ~/apb
docker:
- image: 'cimg/android:2023.10.2-node'
resource_class: xlarge
steps:
- release_android:
env: dev
@aliza-khu could you share how you made the android build work in the mac os machine in circleci?
edit: actually, this worked for me https://github.com/software-mansion/react-native-reanimated/issues/5498#issuecomment-1857506574
thanks
@jpsierens88, You need to write the script for Android in CircleCI. if are planning to do so. you don't need to work ninja as well(https://github.com/software-mansion/react-native-reanimated/issues/5498#issuecomment-1857506574).
Sample:
android:
executor:
name: react-native/ios
xcode_version: "15.2.0"
resource_class: macos.m1.medium.gen1
Hi @aliza-khu @tomekzaw
Sorry to bump an old thread, but I am seeing exactly the issue you describe (CXX1210 no compatible library found) using Bitrise, rather than CircleCI.
I can replicate this locally, using a Macbook M1, macOS 14.4.1.
My current working suspicion is that this relates an incompatible CMake version. Did you get anywhere with your investigation above (before the issue was marked as stale on Jan 10th). Subsequent comments appear to be about a different issue relating to ninja, which I'm not seeing.
Full details below, thanks in advance for any pointers!
Here's the top-level exception:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a]'.
> [CXX1210] /Users/vagrant/git/[redacted]/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
React native info:
info Fetching system and libraries information...
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M1
Memory: 148.17 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.2
path: /var/folders/jf/6rytdw1169l9hg74w4b4xw_c0000gn/T/yarn--1715516602670-0.5430913100633854/node
Yarn:
version: 1.22.10
path: /var/folders/jf/6rytdw1169l9hg74w4b4xw_c0000gn/T/yarn--1715516602670-0.5430913100633854/yarn
npm:
version: 10.5.0
path: ~/.nvm/versions/node/v18.20.2/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /Users/sam/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.4
- iOS 17.4
- macOS 14.4
- tvOS 17.4
- visionOS 1.1
- watchOS 10.4
Android SDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11567975
Xcode:
version: 15.3/15E204a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 3.3.1
path: /Users/sam/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
iOS:
hermesEnabled: false
newArchEnabled: false
And here's the full stack trace:
> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a]'.
> [CXX1210] /Users/vagrant/git/[redacted]/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
* 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:configureCMakeRelWithDebInfo[arm64-v8a]'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:149)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:147)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)
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: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: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: [CXX1210] /Users/vagrant/git/[redacted]/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
at com.android.builder.errors.IssueReporter.reportError(IssueReporter.kt:114)
at com.android.builder.errors.IssueReporter.reportError$default(IssueReporter.kt:110)
at com.android.build.gradle.internal.cxx.logging.IssueReporterLoggingEnvironment.log(IssueReporterLoggingEnvironment.kt:114)
at com.android.build.gradle.internal.cxx.logging.PassThroughRecordingLoggingEnvironment.log(PassThroughRecordingLoggingEnvironment.kt:43)
at com.android.build.gradle.internal.cxx.logging.PassThroughPrefixingLoggingEnvironment.log(PassThroughPrefixingLoggingEnvironment.kt:37)
at com.android.build.gradle.internal.cxx.logging.PassThroughRecordingLoggingEnvironment.log(PassThroughRecordingLoggingEnvironment.kt:43)
at com.android.build.gradle.internal.cxx.logging.ThreadLoggingEnvironment$Companion.reportFormattedErrorToCurrentLogger(LoggingEnvironment.kt:227)
at com.android.build.gradle.internal.cxx.logging.LoggingEnvironmentKt.errorln(LoggingEnvironment.kt:60)
at com.android.build.gradle.tasks.GeneratePrefabPackagesKt.reportErrors(GeneratePrefabPackages.kt:307)
at com.android.build.gradle.tasks.GeneratePrefabPackagesKt$createPrefabBuildSystemGlue$1$1.invoke(GeneratePrefabPackages.kt:113)
at com.android.build.gradle.tasks.GeneratePrefabPackagesKt$createPrefabBuildSystemGlue$1$1.invoke(GeneratePrefabPackages.kt:113)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess(ExecuteProcess.kt:116)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess$default(ExecuteProcess.kt:84)
at com.android.build.gradle.tasks.GeneratePrefabPackagesKt.createPrefabBuildSystemGlue(GeneratePrefabPackages.kt:109)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$2.invoke(ExternalNativeJsonGenerator.kt:204)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$2.invoke(ExternalNativeJsonGenerator.kt:202)
at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configureOneAbi(ExternalNativeJsonGenerator.kt:202)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configure(ExternalNativeJsonGenerator.kt:102)
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.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
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:248)
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:233)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199)
at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)
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: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:56)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
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.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:50)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:28)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionStep.java:100)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:72)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:50)
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:179)
at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:70)
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:68)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)
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:91)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)
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.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:77)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:38)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:94)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:49)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:81)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)
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:36)
at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)
at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)
at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:66)
at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:66)
at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:38)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)
at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:293)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)
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:47)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:34)
at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)
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: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: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)
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.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 54s
42 actionable tasks: 37 executed, 5 up-to-date
Run: build task failed: exit status 1
react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
@tomekzaw, If I execute the below script under my current script
- run: name: Install Ninja command: | sudo apt-get update && sudo apt-get install -y ninja-build - run: name: Install CMake command: | wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-Linux-x86_64.tar.gz tar -xzvf cmake-3.22.1-Linux-x86_64.tar.gz -C $HOME export PATH=$HOME/ninja:$HOME/cmake-3.22.1-Linux-x86_64/bin:$PATH - run: name: Set CMake and Ninja Paths command: | export PATH=$HOME/ninja:$HOME/cmake-3.22.1-Linux-x86_64/bin:$PATH - run: name: Accept Android SDK Licenses command: yes | sdkmanager --licenses || if [ $? -ne '141' ]; then exit $?; fi;
then I got rid of
Could not find Ninja on PATH or in SDK CMake bin folders
. but now facing a new issue:> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED [CXX1210] /home/circleci/react-native/node_modules/react-native-reanimated/android/CMakeLists.txt release|arm64-v8a : No compatible library found
Can you please share the solution to this?
Looks like this is somehow related to https://github.com/software-mansion/react-native-reanimated/issues/4712, so unsetting/removing the _JAVA_OPTIONS
envar prior execution (plus installing ninja and cmake as described above) did the trick!
I encountered an error while updating my React Native project from version 0.72.x to 0.74.3. The project configuration includes:
React Native: 0.74.3
React Native Reanimated: ^3.14.0
Gradle: Updated from 7.5 to 8.7
Build Tool: Fastlane
CI Environment: CircleCI
Docker Image: cimg/android:2023.08.1-node
Problem
The project works fine on my local machine in development mode, and I can generate builds using Fastlane on my machine without any issues. However, when running the build job on CircleCI using
bundle exec fastlane staging
I encounter the following error:
> Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a]'.
> [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
Has anyone encountered a similar issue or found a solution for this? Any steps or suggestions to fix this would be greatly appreciated. Thank you!
⚠️ ⚠️ ⚠️ For me, unsetting the _JAVA_OPTIONS
solve the problem.
Remove the option _JAVA_OPTIONS
solved the problem for me too, thx a lot saved me a lot of time
Description
I am using react-native 0.73.0 along with react-native-reanimated: 3.6.1 And try to make release build using CircleCI. I am facing below error:
FAILURE: Build failed with an exception.
Steps to reproduce
Set the below configuration of the project:
"react": "18.2.0", "react-native": "0.73.0", "react-native-reanimated": "^3.6.1",
Now try to generate release build on CircleCI
Snack or a link to a repository
Confidential
Reanimated version
3.6.1
React Native version
0.73.0
Platforms
Android
JavaScript runtime
None
Workflow
React Native
Architecture
None
Build type
Release app & production bundle
Device
None
Device model
No response
Acknowledgements
Yes