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.
[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!
I today faced this problem, here are the steps I followed to solve it:
Changed package versions
Run in root folder rm -rf node_modaules and yarn or npm install
And added this lines in file ./android/build.gradle
enter image description here
enter image description here
In android folder run: ./gradlew clean and after that run any commands (./gradlew bundleRelease, ./gradlew assembleRelease)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With