When I uploaded react-native-screens, ı faced this error:
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Picked up JAVA_TOOL_OPTIONS: -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:react-native-screens:configureCMakeDebug[arm64-v8a]’. > [CXX1210] C:UsersxxxDesktopreact_nativedenemeprojectnode_modulesreact-native-screensandroidCMakeLists.txt debug|arm64-v8a : No compatible library found * Try: > Run with –stacktrace option to get the stack trace. > Run with –info or –debug option to get more log output. > Run with –scan to get full insights. > Get more help at https://help.gradle.org. BUİLD FAILED in 5s.
dependencies”: {
“@react-navigation/native”: “^7.0.0-alpha.18”,
“@react-navigation/native-stack”: “^7.0.0-alpha.20”,
“react”: “18.2.0”,
“react-native”: “0.74.1”,
“react-native-safe-area-context”: “^4.10.1”,
“react-native-screens”: “^3.31.1”
},
Node.js v20.13.1
Npm: ‘10.7.0’,
How to fix this error?
Ebru Özdemir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.