react-native-reanimated: Execution failed for task ':react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a]

Description

  • What went wrong: Execution failed for task ‘:react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a]’.

com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\ADBHUT ASHRA\OneDrive\Desktop\cards_react_native\node_modules\react-native-reanimated\android.cxx\RelWithDebInfo\4t2p2n3m\arm64-v8a’ [0/2] Re-checking globbed directories… ninja: build stopped: .

C++ build system [build] failed while executing: @echo off “C:\Users\ADBHUT ASHRA\AppData\Local\Android\Sdk\cmake\3.22.1\bin\ninja.exe” ^ -C ^ “C:\Users\ADBHUT ASHRA\OneDrive\Desktop\cards_react_native\node_modules\react-native-reanimated\android\.cxx\RelWithDebInfo\4t2p2n3m\arm64-v8a” ^ reanimated ^ worklets from C:\Users\ADBHUT ASHRA\OneDrive\Desktop\cards_react_native\node_modules\react-native-reanimated\android ninja: error: mkdir(src/main/cpp/worklets/CMakeFiles/worklets.dir/C_/Users/ADBHUT_ASHRA/OneDrive/Desktop/cards_react_native/node_modules/react-native-reanimated): No such file or directory

“dependencies”: { “react”: “18.3.1”, “react-native”: “0.76.5”, “react-native-gesture-handler”: “^2.14.0”, “react-native-reanimated”: “^3.16.6” },

ndkVersion = “23.1.7779620”

try to change many ndk version , but when I am trying to create an apk file with cd android && ./gradlew assembleRelease, I am getting this error , please provide the solution also check so many issues in the github repository but no works at all . need help urgent.

Steps to reproduce

just trying to build the apk file so i am getting this issue with latest version of react native and react native animated. Screenshot 2024-12-28 203922

Snack or a link to a repository

https://github.com/Adbhutashra/TarotCards_ReactNative

Reanimated version

3.16.6

React Native version

0.76.5

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Here are some of the fixes you can try:

  1. Delete rhe .cxx folder and clean build the project.

  2. Shift the project to a location with shorter path, probably C:/

These solutions worked for me 😄

Here are some of the fixes you can try:

  1. Delete rhe .cxx folder and clean build the project.
  2. Shift the project to a location with shorter path, probably C:/

These solutions worked for me 😄

You are a life saver @manassanas01 I did not have to delete the cxx folder. Option 2 was the solution. I had forgotten that the Windows OS always has issues with long paths.