I created a React-native project on windows 11, run it imediatly with "npx react-native run-android", it works fine,
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.