Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Adbhutashra opened this issue Dec 28, 2024 · 11 comments
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@Adbhutashra
Copy link

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

@github-actions github-actions bot added Platform: Android This issue is specific to Android Repro provided A reproduction with a snippet of code, snack or repo is provided labels Dec 28, 2024
@isogand
Copy link

isogand commented Dec 31, 2024

i have exactly the same problem, is there a solution?
"react": "18.3.1",
"react-native": "0.76.5",
"react-native-reanimated": "^3.16.6",

@Adbhutashra
Copy link
Author

@isogand
I have tried it with downgrade version so it works.

"react": "18.2.0",
"react-native": "0.73.6",
"react-native-gesture-handler": "^2.14.0",
"react-native-reanimated": "^3.6.2"

@isogand
Copy link

isogand commented Dec 31, 2024

what version of gradle should i install ? i'm using gradle-8.10.2-all.zip now

@souravrasiknagar
Copy link

is there any solution for this, what should we do for this ?

@Adbhutashra
Copy link
Author

@isogand
I am using
distributionUrl=https://services.gradle.org/distributions/gradle-8.3-all.zip

@Adbhutashra
Copy link
Author

is there any solution for this, what should we do for this ?

For me downgrade version is the solution.

@souravrasiknagar
Copy link

so for this error we have to downgrade this:-
Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2

Task :app:externalNativeBuildCleanDebug FAILED
Clean react_codegen_rnreanimated-armeabi-v7a, react_codegen_safeareacontext-armeabi-v7a, core-armeabi-v7a, react_codegen_pagerview-armeabi-v7a, react-native-mmkv-armeabi-v7a, react_codegen_rngesturehandler_codegen-armeabi-v7a, react_codegen_RNImagePickerSpec-armeabi-v7a, react_codegen_rnscreens-armeabi-v7a, appmodules-armeabi-v7a, react_codegen_RNSentrySpec-armeabi-v7a, react_codegen_RNMmkvSpec-armeabi-v7a, react_codegen_rnasyncstorage-armeabi-v7a

@Sanjayng125
Copy link

Bro, did you find the solution? Downgrading Gradle to 8.6 throws another error, saying the minimum required is 8.7.

@manassanas01
Copy link

@isogand I have tried it with downgrade version so it works.

"react": "18.2.0", "react-native": "0.73.6", "react-native-gesture-handler": "^2.14.0", "react-native-reanimated": "^3.6.2"

Say you don't want to downgrade react-native, what would be the solution then?

@lewis-geek
Copy link

I have the same issue

@manassanas01
Copy link

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 :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

6 participants