79147716

Date: 2024-11-01 10:48:25
Score: 0.5
Natty:
Report link

I created a React-native project on windows 11, run it imediatly with "npx react-native run-android", it works fine,

But after instalation "npm install react-native-screens react-native-safe-area-context" it give me the error as bellow:


Argument not separated from preceding token by whitespace. Call Stack (most recent call first): C:/Users/chris/OneDrive/Desktop/React Native/Nouveau dossier (7)/AppDevSrilankaTask/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include) CMakeLists.txt:31 (include) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at C:/Users/chris/OneDrive/Desktop/React Native/Nouveau dossier (7)/AppDevSrilankaTask/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): C:/Users/chris/OneDrive/Desktop/React Native/Nouveau dossier (7)/AppDevSrilankaTask/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include) CMakeLists.txt:31 (include)

CMake Error at C:/Users/chris/OneDrive/Desktop/React Native/Nouveau dossier (7)/AppDevSrilankaTask/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:10 (add_subdirectory): add_subdirectory called with incorrect number of arguments Call Stack (most recent call first): C:/Users/chris/OneDrive/Desktop/React Native/Nouveau dossier (7)/AppDevSrilankaTask/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:86 (include) CMakeLists.txt:31 (include)

CMake Error at C:/Users/chris/OneDrive/Desktop/React Native/Nouveau dossier (7)/AppDevSrilankaTask/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake:89 (target_link_libraries): Cannot specify link libraries for target "react_codegen_safeareacontext" which is not built by this project. Call Stack (most recent call first): CMakeLists.txt:31 (include)

ninja: error: rebuilding 'build.ninja': subcommand failed

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.

BUILD FAILED in 5s info Run CLI with --verbose flag for more details.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: justin