Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native-reanimated:configureCMakeDebug[arm64-v8a] error after install react-native-vision-camera

After the install of react-native-vision-camera there is this error that shows up. I've tried to downgrade the versions but again i can the same error.

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 76 actionable tasks: 5 executed, 71 up-to-date

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

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

[CXX1405] error when building with cmake using node_modules\react-native-reanimated\android\CMakeLists.txt: Build command failed.

And these are the versions i use:

"react": "18.1.0",
"react-native": "^0.70.4",
"react-native-reanimated": "^2.10.0",
"react-native-vision-camera": "^2.14.1"

Thanks in advance!

like image 354
soger Avatar asked Dec 22 '25 21:12

soger


1 Answers

I today faced this problem, here are the steps I followed to solve it:

  1. Changed package versions

    • "react-native-reanimated": "2.10.0"
    • "react-native-vision-camera": "2.14.1"
  2. Run in root folder rm -rf node_modaules and yarn or npm install

  3. And added this lines in file ./android/build.gradle enter image description here enter image description here

  4. In android folder run: ./gradlew clean and after that run any commands (./gradlew bundleRelease, ./gradlew assembleRelease)

like image 153
Aibek Rakhmatillaev Avatar answered Dec 24 '25 10:12

Aibek Rakhmatillaev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!