software-mansion / react-native-reanimated

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

Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'. > [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders. #6778

Open mkchoudhary1 opened 2 days ago

mkchoudhary1 commented 2 days ago

Description

i have got an error while running the react native app

Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.

[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.

i have used like following version of packages: react native : "0.76.3" node: v22.11.0 @react-native-community/cli: 15.0.1

using : vanillacream sdk(15)

i am also new in learning React Native app development

Steps to reproduce

building the project using : npx react-native run-android

then emulator opened successfully info Installing the app...

Task :app:configureCMakeDebug[arm64-v8a] FAILED error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exce ption. * What went wrong: Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'. > [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.

Snack or a link to a repository

no repo

Reanimated version

3.16.3

React Native version

0.76.3

Platforms

Android

JavaScript runtime

v8

Workflow

React Native

Architecture

None

Build type

Debug app & dev bundle

Device

Android emulator

Device model

pixel 9

Acknowledgements

Yes

github-actions[bot] commented 2 days 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?

gmonb commented 8 hours ago

I'm using EAS and running the commands in a docker container. I had a similar error and this worked for me:

RUN apt-get update && apt-get install -y ninja-build

You should try installing ninja