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

Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED for Android In empty project #4712

Closed
DigohD opened this issue Jul 11, 2023 · 48 comments
Labels
Needs review Issue is ready to be reviewed by a maintainer Platform: Android This issue is specific to Android Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@DigohD
Copy link

DigohD commented Jul 11, 2023

Description

We recently upgraded to latest React-Native (0.72.2) and upgraded Reanimated to 3.3.0. After this upgrade, we get the following error when running assembleDebug for Android:

Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED

FAILURE: Build failed with an exception.

* What went wrong:                                                                      
Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.    
> Picked up _JAVA_OPTIONS: -Xmx2048M

After failing to find a solution to the issue I created a brand new react native project with react-native-reanimated and tried building it for Android:

npx react-native init ReactNativeTest
cd ReactNativeTest
npm i react-native-reanimated
cd android
gradlew clean
gradlew assembleDebug

Also added to babel config.:

 plugins: [
    [
      'react-native-reanimated/plugin',
      {
        relativeSourceLocation: true,
      },
    ],
  ],

The same error occurs in the brand new project.

npx react-native run-android fails with the same error as assembleDebug.

Reanimated builds and runs as expected on iOS devices using Xcode.

Steps to reproduce

  1. Init a new react native project
  2. install reanimated using npm
  3. clean and build for android

Snack or a link to a repository

https://github.com/DigohD/Reanimated-build-error-cmake-config-issue-repo

Reanimated version

3.3.0

React Native version

0.72.2

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

None

Device model

No response

Acknowledgements

Yes

@DigohD DigohD added the Needs review Issue is ready to be reviewed by a maintainer label Jul 11, 2023
@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 Jul 11, 2023
@tjzel
Copy link
Collaborator

tjzel commented Jul 11, 2023

Hi @DigohD.
I couldn't reproduce the error you mentioned - my android build works just fine on cloning the repo you provided.

Although looking at this:

Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED

FAILURE: Build failed with an exception.

* What went wrong:                                                                      
Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.    
> Picked up _JAVA_OPTIONS: -Xmx2048M

I think this might be architecture related. Do you have Rosetta installed on your machine?

@DigohD
Copy link
Author

DigohD commented Jul 11, 2023

Hi! Thanks for the quick answer.

Pardon me, I forgot mentioning that I am working on a windows 11 machine. My colleague who also uses a PC encounter the same error when testing the repo I linked.

Edit: I will try on my home PC as well later tonight

@efstathiosntonas
Copy link
Contributor

can you try with ndk 24.0.8215888?

@tjzel
Copy link
Collaborator

tjzel commented Jul 12, 2023

@DigohD I'm no expert in these things but we have a CI that uses windows-latest GitHub virtual machine. Maybe take a look at its config, especially that NDK @efstathiosntonas mentioned and see if there are any key differences compared to your machine.

@devnev
Copy link

devnev commented Jul 12, 2023

Encountered a similar issue here: react-native-community/react-native-circleci-orb#171
With some (ndk? sdk?) versions, the Picked up _JAVA_OPTIONS output causes a failure. Removing _JAVA_OPTIONS from the environment will fix it.

@DigohD
Copy link
Author

DigohD commented Jul 12, 2023

I reset my PC and reinstalled everything and now it works. I tried re-adding the _JAVA_OPTIONS variable just to check if that could be the issue I had before, and it indeed causes the error to come back.

I did not try ndk 24.0.8215888, but tried ndk 25 yesterday which did not solve the issue.

Thank you all for helping me out.

@DigohD DigohD closed this as completed Jul 12, 2023
@Dat-Mobile
Copy link

Encountered a similar issue here: react-native-community/react-native-circleci-orb#171
With some (ndk? sdk?) versions, the Picked up _JAVA_OPTIONS output causes a failure. Removing _JAVA_OPTIONS from the environment will fix it.

Remove _JAVA_OPTIONS in cimg/android on circleci and it works now
Thank you

@Electromorphous
Copy link

This worked for me (Windows 10 | react-native 0.72.5 | react-native-reanimated 3.5.4)

cd android
./gradlew clean
cd ..
npm start -- --reset-cache

@Digital-Human-BK
Copy link

Digital-Human-BK commented Nov 16, 2023

Check your JDK versions, in my case, I had JDK 11.0.18, and a simple update to version 11.0.20 solved all the problems. Don't forget to run yarn start --reset-cache before you try to build.

@Electromorphous
Copy link

I do not have JDK, only JRE. And I don't see what's wrong with what I said. I also suggested to clean the cache and run again, and I said that's what worked for me so it's worth a try. Never said it will solve everyone's problems.

@roots-ai
Copy link

Any updates here?

@tatiana-lonestone
Copy link

tatiana-lonestone commented Nov 29, 2023

I've got the same error after trying to update one lib using reanimated, but after remove any change (come back to a previous version on my git project), I can not remove this error

can you try with ndk 24.0.8215888?

<= This fix my project build after a 10 min gradlew clean. I don't understand why, but this works. Thank's :)

@Ritikkk-09
Copy link

Ritikkk-09 commented Nov 30, 2023

I've got the same error after trying to update one lib using reanimated, but after remove any change (come back to a previous version on my git project), I can not remove this error

can you try with ndk 24.0.8215888?

<= This fix my project build after a 10 min gradlew clean. I don't understand why, but this works. Thank's :)

And what is your react-native or reanimated or cmake version ?

@GaboRocker1992
Copy link

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

@sen-ol
Copy link

sen-ol commented Dec 13, 2023

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

moving the project to a folder with a shorter path solved my problem. Yes it is funny and absurd but also very frustrating. I wasted a lot time to solve this issue.

@krendus
Copy link

krendus commented Dec 14, 2023

installing the latest version of react-native-reanimated
npm i react-native-reanimated@latest
and then clearing the metro cache
npm start -- --reset-cache fixed it for me

@kyrieLiu3
Copy link

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

@GaboRocker1992 Hi, guy, you're just my super rock star and save my day! It costs me the whole day to fix this one! Who's gonna believe the root cause is a project folder with a long name?

@TiJWang
Copy link

TiJWang commented Jan 21, 2024

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

This one is AMAAAAAZING!! Thanks a lot!

@iamnynvk
Copy link

iamnynvk commented Apr 4, 2024

Resolved by following steps

  1. Remove build and .cxx folder in the android/app/ directory.
  2. Run the command in terminal :
    - cd android && ./gradlew clean
  3. Open gradle.properties files
  4. newArchEnabled=false
  5. Run the project :
    - cd .. && npm start -- --reset-cache
    - npm run android

@iamnynvk
Copy link

iamnynvk commented Apr 4, 2024

Enable Bridgeless Mode

Bridgeless Mode

1. Enable Bridgeless flag in native

Android
In your MainApplication.kt file, update the onCreate function by passing the bridglessEnabled = true flag to the load invocation.

// MyMainApplication.kt

import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load

override fun onCreate() {
  ...
  if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
    // Set bridgelessEnabled to true here to enable Bridgeless, it's false by default
-   load()
+   load(bridgelessEnabled = true)
  }
  ...
}

iOS

To enable Bridgeless for your React Native app, you need to override function bridgelessEnabled in app’s AppDelegate.mm:

// AppDelegate.mm

- (BOOL)bridgelessEnabled
{
    return YES;
}

2. Enable New Architectures

Open gradle.properties file
newArchEnabled=true

FINALLY, Complete the configuration for Enable Bridgeless Mode.

@GohilMahendra
Copy link

try to install cmake with help of brew and update the rosseta. this thing worked for me

@namycodes
Copy link

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

Haaaa, funny but true

@matsura
Copy link

matsura commented May 7, 2024

What worked for me is running cd android and ./gradleW assembleDebug --stacktrace. This gave me the error stack trace which showed an IllegalStateException the cause of which was the JAVA_TOOL_OPTIONS env variable. So I unset it. After that an issue appeared about CMakeLists - this was caused by having env var _JAVA_OPTIONS set. Unset this well and it builds successfully!

@miallo
Copy link

miallo commented May 16, 2024

Thank you everyone for figuring this out! Indeed unsetting JAVA_TOOL_OPTIONS worked for us.

Question: does it make sense to reopen this issue, since AFAICT there is only a workaround, but the underlying issue seems to still exist 🤔

@gharivand
Copy link

Most of the time you install react-native-reanimated for react-native-gesture-handler.
My solution is to go to node_modules/react-native-gesture-handler/package.json and install the same version that is installed in this package. in my case, that was "^2.3.1".

@otisidev
Copy link

otisidev commented Jul 7, 2024

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

This worked for me too. Thank you so much @GaboRocker1992 .

@danilor
Copy link

danilor commented Jul 15, 2024

Resolved by following steps

  1. Remove build and .cxx folder in the android/app/ directory.
  2. Run the command in terminal :
    • cd android && ./gradlew clean
  3. Open gradle.properties files
  4. newArchEnabled=false
  5. Run the project :
    • cd .. && npm start -- --reset-cache
    • npm run android

This worked for me. Not exactly related to native-reanimate, but same error on other library.

@yasirgit62
Copy link

installing the latest version of react-native-reanimated npm i react-native-reanimated@latest and then clearing the metro cache npm start -- --reset-cache fixed it for me

PROBLEM WAS IN THE NDK VERSION I WAS USING LATEST 27 BUT NOW USED 25

@Asad-wego
Copy link

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!

@yasirgit62
Copy link

yasirgit62 commented Jul 26, 2024 via email

@eskalVAR
Copy link

Can confirm unsetting _JAVA_OPTIONS fixes build issue. Surprising this is still an issue!

@anshu9165
Copy link

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.

same issue i am facing please help to resolve

@jawadkhan27
Copy link

same error.

Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED
65 actionable tasks: 10 executed, 55 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Note: C:\AwesomeProject\node_modules\react-native-gesture-handler\android\paper\src\main\java\com\swmansion\gesturehandler\NativeRNGestureHandlerModuleSpec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

@dinesh-brilworks
Copy link

I am having the same issue with some other library,

Execution failed for task ':react-native-fast-openpgp:configureCMakeDebug[arm64-v8a]'.

[CXX1410] ..../node_modules/react-native-fast-openpgp/android/.cxx/Debug/5v282i3v/arm64-v8a/android_gradle_build.json debug|arm64-v8a : expected buildTargetsCommandComponents command 'ninja' to exist

@GSSPawanKumarSingh
Copy link

GSSPawanKumarSingh commented Aug 13, 2024

Execution failed for task ':react-native-reanimated:buildCMakeRelWithDebInfo[armeabi-v7a]'.
getting same issue today
Any Luck?

@GSSPawanKumarSingh
Copy link

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!

Have you get any solution?

@GSSPawanKumarSingh
Copy link

Execution failed for task ':react-native-reanimated:buildCMakeRelWithDebInfo[armeabi-v7a]'. getting same issue today Any Luck?

Get resolved after doing the below steps

  1. Deleted node_module
  2. gradlew clean
  3. delete build folder if any in android
  4. Close VS Code
  5. Install node_module
  6. Separately installed npm i react-native-reanimated@3.6.1
  7. Build the project again.

Work like a charm!!!
Happy Coding!

@cucereanum
Copy link

If you want to have the "new architecture" and "bridgeless" mode enabled, I resolved this by updating to "react-native:0.75.1" and "react-native-reanimated:3.15.0"

I used this as a reference: https://github.com/software-mansion/react-native-reanimated/tree/main/apps/fabric-example

@OAllanFernando
Copy link

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

thanksss

@okpoEkpenyong
Copy link

My error went away after downloading and using previous version of NDK:

android/build.gradle:

buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125" # error went away after downloading this from Android Studio
// ndkVersion = "27.0.12077973" # this is the most recent version causing the breaking changes
kotlinVersion = "1.9.24"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}

apply plugin: "com.facebook.react.rootproject"

@dglalperen
Copy link

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

thats crazy it really worked xd

@ronix99
Copy link

ronix99 commented Sep 16, 2024

If you have the same problem after all maybe you can try delete the "^" of the number version (if you have that symbol) and repeat the ./gradlew clean and --reset-cache

@sanaishaque
Copy link

@ronix99 thanks. after trying for hours, found and tried your solution and it worked, removed "^" from reanimated.

@cj-marius-duna
Copy link

jezz...can someone just provide the aar library file for arm64?

@kanaan-bahmani-zeta
Copy link

It's funny and absurd, but the issue is due to the project path being too long. I recommend copying or moving your project to c:\ or desktop. Delete the node_modules folder, run npm i, cd android & ./gradlew clean, and then build.

This also worked for me I moved my project to C and now it works but it's absurd indeed and I'm speechless how there's no clear error about the file path being too long or why do we even need to have limited characters for file path!!!
Thanks for the fix!

@ab7022
Copy link

ab7022 commented Oct 26, 2024

`

Task :app:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
C/C++: add_subdirectory called with incorrect number of arguments
C/C++: Call Stack (most recent call first):
C/C++: /home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include)
C/C++: CMakeLists.txt:31 (include)
C/C++: CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:11 (add_subdirectory):
C/C++: add_subdirectory called with incorrect number of arguments
C/C++: Call Stack (most recent call first):
C/C++: /home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include)
C/C++: CMakeLists.txt:31 (include)
C/C++: CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:89 (target_link_libraries):
C/C++: Cannot specify link libraries for target "react_codegen_RNCSlider" which is
C/C++: not built by this project.
C/C++: Call Stack (most recent call first):
C/C++: CMakeLists.txt:31 (include)

Task :react-native-track-player:compileDebugKotlin
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:4:38 'MediaMetadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:5:47 'Metadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:6:52 'VorbisComment' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:7:51 'IcyHeaders' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:8:51 'IcyInfo' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:9:51 'ChapterFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:10:51 'TextInformationFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:11:51 'UrlLinkFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:12:51 'MdtaMetadataEntry' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:17:36 'Metadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:25:28 'ChapterFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:28:28 'TextInformationFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:33:62 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:37:66 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:41:63 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:45:69 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:49:62 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:56:63 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:61:28 'UrlLinkFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:70:28 'IcyHeaders' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:98:28 'IcyInfo' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:117:28 'VorbisComment' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:153:28 'MdtaMetadataEntry' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/MetadataAdapter.kt:193:41 'MediaMetadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:3:47 'Metadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:4:52 'VorbisComment' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:5:51 'IcyHeaders' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:6:51 'IcyInfo' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:7:51 'TextInformationFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:8:51 'UrlLinkFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:9:51 'MdtaMetadataEntry' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:25:39 'Metadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:37:24 'TextInformationFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:41:47 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:45:47 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:49:48 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:53:46 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:57:47 'value: String' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:62:24 'UrlLinkFrame' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:81:31 'Metadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:84:24 'IcyHeaders' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:87:24 'IcyInfo' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:112:41 'Metadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:124:30 'VorbisComment' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:160:37 'Metadata' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/PlaybackMetadata.kt:171:30 'MdtaMetadataEntry' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/Track.kt:9:47 'RawResourceDataSource' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/model/Track.kt:40:13 'RawResourceDataSource' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:8:47 'LocalBroadcastManager' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:19:38 'DefaultLoadControl' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:20:38 'Player' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:156:34 'Player' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:157:36 'Player' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:158:36 'Player' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:232:9 'LocalBroadcastManager' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/module/MusicModule.kt:357:13 Variable 'context' is never used
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/service/MusicService.kt:176:13 'stoppingAppPausesPlayback: Boolean' is deprecated. This will be removed soon
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/service/MusicService.kt:177:17 'stoppingAppPausesPlayback: Boolean' is deprecated. This will be removed soon
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:16:19 'get(String!): Any?' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:24:51 'getInstance(): ResourceDrawableIdHelper' is deprecated. Use .instance instead, this API is for backward compat
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:45:19 'get(String!): Any?' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:61:47 'getInstance(): ResourceDrawableIdHelper' is deprecated. Use .instance instead, this API is for backward compat
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:71:47 'getInstance(): ResourceDrawableIdHelper' is deprecated. Use .instance instead, this API is for backward compat
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:105:21 'get(String!): Any?' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:112:21 'get(String!): Any?' is deprecated. Deprecated in Java
w: file:///home/abdul/Desktop/React%20Native%20Projects/Spotify08/node_modules/react-native-track-player/android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt:119:21 'get(String!): Any?' is deprecated. Deprecated in Java
92 actionable tasks: 68 executed, 24 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.

[CXX1429] error when building with cmake using /home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/CMakeLists.txt: -- The C compiler identification is Clang 17.0.2
-- The CXX compiler identification is Clang 17.0.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/abdul/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/abdul/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/arm64-v8a/CMakeFiles/CMakeOutput.log".

C++ build system [configure] failed while executing:
/home/abdul/Android/Sdk/cmake/3.22.1/bin/cmake
"-H/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup"
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_SYSTEM_VERSION=24
-DANDROID_PLATFORM=android-24
-DANDROID_ABI=arm64-v8a
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
-DANDROID_NDK=/home/abdul/Android/Sdk/ndk/26.1.10909125
-DCMAKE_ANDROID_NDK=/home/abdul/Android/Sdk/ndk/26.1.10909125
-DCMAKE_TOOLCHAIN_FILE=/home/abdul/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=/home/abdul/Android/Sdk/cmake/3.22.1/bin/ninja
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/intermediates/cxx/Debug/d383k65e/obj/arm64-v8a"
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/intermediates/cxx/Debug/d383k65e/obj/arm64-v8a"
-DCMAKE_BUILD_TYPE=Debug
"-DCMAKE_FIND_ROOT_PATH=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/prefab/arm64-v8a/prefab"
"-B/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/arm64-v8a"
-GNinja
"-DPROJECT_BUILD_DIR=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build"
"-DREACT_ANDROID_DIR=/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid"
-DANDROID_STL=c++_shared
-DANDROID_USE_LEGACY_TOOLCHAIN_FILE=ON
from /home/abdul/Desktop/React Native Projects/Spotify08/android/app
CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
add_subdirectory called with incorrect number of arguments
Call Stack (most recent call first):
/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include)
CMakeLists.txt:31 (include)

CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:11 (add_subdirectory):
add_subdirectory called with incorrect number of arguments
Call Stack (most recent call first):
/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include)
CMakeLists.txt:31 (include)

CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:89 (target_link_libraries):
Cannot specify link libraries for target "react_codegen_RNCSlider" which is
not built by this project.
Call Stack (most recent call first):
CMakeLists.txt:31 (include) : com.android.ide.common.process.ProcessException: -- The C compiler identification is Clang 17.0.2
-- The CXX compiler identification is Clang 17.0.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/abdul/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/abdul/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/arm64-v8a/CMakeFiles/CMakeOutput.log".

C++ build system [configure] failed while executing:
/home/abdul/Android/Sdk/cmake/3.22.1/bin/cmake
"-H/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup"
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_SYSTEM_VERSION=24
-DANDROID_PLATFORM=android-24
-DANDROID_ABI=arm64-v8a
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
-DANDROID_NDK=/home/abdul/Android/Sdk/ndk/26.1.10909125
-DCMAKE_ANDROID_NDK=/home/abdul/Android/Sdk/ndk/26.1.10909125
-DCMAKE_TOOLCHAIN_FILE=/home/abdul/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=/home/abdul/Android/Sdk/cmake/3.22.1/bin/ninja
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/intermediates/cxx/Debug/d383k65e/obj/arm64-v8a"
"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/intermediates/cxx/Debug/d383k65e/obj/arm64-v8a"
-DCMAKE_BUILD_TYPE=Debug
"-DCMAKE_FIND_ROOT_PATH=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/prefab/arm64-v8a/prefab"
"-B/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/arm64-v8a"
-GNinja
"-DPROJECT_BUILD_DIR=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build"
"-DREACT_ANDROID_DIR=/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid"
-DANDROID_STL=c++_shared
-DANDROID_USE_LEGACY_TOOLCHAIN_FILE=ON
from /home/abdul/Desktop/React Native Projects/Spotify08/android/app
CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory):
add_subdirectory called with incorrect number of arguments
Call Stack (most recent call first):
/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include)
CMakeLists.txt:31 (include)

CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:11 (add_subdirectory):
add_subdirectory called with incorrect number of arguments
Call Stack (most recent call first):
/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include)
CMakeLists.txt:31 (include)

CMake Error at /home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:89 (target_link_libraries):
Cannot specify link libraries for target "react_codegen_RNCSlider" which is
not built by this project.
Call Stack (most recent call first):
CMakeLists.txt:31 (include)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:288)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:108)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt$executeProcess$1.invoke(ExecuteProcess.kt:106)
at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess(ExecuteProcess.kt:106)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.executeProcess$default(ExecuteProcess.kt:85)
at com.android.build.gradle.tasks.CmakeQueryMetadataGenerator.executeProcess(CmakeFileApiMetadataGenerator.kt:59)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator$configureOneAbi$1$1$3.invoke(ExternalNativeJsonGenerator.kt:247)
at com.android.build.gradle.internal.cxx.timing.TimingEnvironmentKt.time(TimingEnvironment.kt:32)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configureOneAbi(ExternalNativeJsonGenerator.kt:247)
at com.android.build.gradle.tasks.ExternalNativeJsonGenerator.configure(ExternalNativeJsonGenerator.kt:113)
at com.android.build.gradle.tasks.ExternalNativeBuildJsonTask.doTaskAction(ExternalNativeBuildJsonTask.kt:89)
at com.android.build.gradle.internal.tasks.UnsafeOutputsTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:66)
at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
at com.android.build.gradle.internal.tasks.UnsafeOutputsTask.taskAction(UnsafeOutputsTask.kt:81)
at jdk.internal.reflect.GeneratedMethodAccessor1014.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
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:244)
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:166)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:229)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:212)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:195)
at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:162)
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:209)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
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:166)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
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.CancelExecutionStep.execute(CancelExecutionStep.java:42)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:75)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:50)
at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:28)
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.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:61)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:26)
at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:69)
at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:46)
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:189)
at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
at org.gradle.internal.Either$Right.fold(Either.java:175)
at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:46)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:35)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:75)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:53)
at java.base/java.util.Optional.orElseGet(Optional.java:364)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:53)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:35)
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.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:49)
at org.gradle.internal.execution.steps.ResolveIncrementalCachingStateStep.executeDelegate(ResolveIncrementalCachingStateStep.java:27)
at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:71)
at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:39)
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.ValidateStep.execute(ValidateStep.java:107)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:56)
at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:64)
at org.gradle.internal.execution.steps.AbstractCaptureStateBeforeExecutionStep.execute(AbstractCaptureStateBeforeExecutionStep.java:43)
at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.executeWithNonEmptySources(AbstractSkipEmptyWorkStep.java:125)
at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:56)
at org.gradle.internal.execution.steps.AbstractSkipEmptyWorkStep.execute(AbstractSkipEmptyWorkStep.java:36)
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.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:75)
at org.gradle.internal.execution.steps.HandleStaleOutputsStep.execute(HandleStaleOutputsStep.java:41)
at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$execute$0(AssignMutableWorkspaceStep.java:35)
at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:289)
at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:31)
at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.execute(AssignMutableWorkspaceStep.java:22)
at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67)
at java.base/java.util.Optional.orElseGet(Optional.java:364)
at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67)
at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:48)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:35)
at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:61)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:127)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:116)
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:209)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
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:166)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
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:85)
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:459)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: com.android.ide.common.process.ProcessException: Error while executing process /home/abdul/Android/Sdk/cmake/3.22.1/bin/cmake with arguments {-H/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=24 -DANDROID_PLATFORM=android-24 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=/home/abdul/Android/Sdk/ndk/26.1.10909125 -DCMAKE_ANDROID_NDK=/home/abdul/Android/Sdk/ndk/26.1.10909125 -DCMAKE_TOOLCHAIN_FILE=/home/abdul/Android/Sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home/abdul/Android/Sdk/cmake/3.22.1/bin/ninja -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/intermediates/cxx/Debug/d383k65e/obj/arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build/intermediates/cxx/Debug/d383k65e/obj/arm64-v8a -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_ROOT_PATH=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/prefab/arm64-v8a/prefab -B/home/abdul/Desktop/React Native Projects/Spotify08/android/app/.cxx/Debug/d383k65e/arm64-v8a -GNinja -DPROJECT_BUILD_DIR=/home/abdul/Desktop/React Native Projects/Spotify08/android/app/build -DREACT_ANDROID_DIR=/home/abdul/Desktop/React Native Projects/Spotify08/node_modules/react-native/ReactAndroid -DANDROID_STL=c++_shared -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=ON}
at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73)
at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48)
at com.android.build.gradle.internal.cxx.process.ExecuteProcessKt.execute(ExecuteProcess.kt:277)
... 140 more
Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/abdul/Android/Sdk/cmake/3.22.1/bin/cmake'' finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:442)
at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
... 141 more
` i am geting this error

@O-ElAli
Copy link

O-ElAli commented Oct 31, 2024

seems similar enough to the issue im facing, for some reason no matter what I try i cant get my project to run once i install react-native-file-system. if i uninstall it it works and when i reinstall it it stops. I followed the installation steps on their github too but nothing seems to be working.
Any advice?

@afiq234
Copy link

afiq234 commented Nov 4, 2024

{
"name": "TestDetection",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"react": "18.2.0",
"react-native": "0.74.5",
"react-native-reanimated": "^3.15.4",
"react-native-vision-camera": "^4.5.2",
"react-native-worklets-core": "^1.3.3"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.74.87",
"@react-native/eslint-config": "0.74.87",
"@react-native/metro-config": "0.74.87",
"@react-native/typescript-config": "0.74.87",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}

the only solution works for me is downgraded to rn 0.74.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs review Issue is ready to be reviewed by a maintainer 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