wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

React Native Build Failed causing CMake package in Android Studio ! #7929

Open adeelbhai22 opened 3 weeks ago

adeelbhai22 commented 3 weeks ago

What happened?

Whenever I install the required packages for Navigation Stack and then rebuild this app using Android Studio, it causes an error. It’s been 4 days, and I still can’t find a solution. I’ve tried every possible way to resolve this but failed! Can anybody help me with this? I’ve attached the screenshot.

rr

What was the expected behaviour?

Somekind of missing properties or bug in CMake that unable to perfom sucessfull Build ! While it worked Good when i dont use Navigation packages but when i installed them to use Navigation Stack and open the project in Android Studio to BUILD it cause an error that says C/C++: ninja: error: rebuilding 'build.ninja': subcommand failed Full Error picture attached

Was it tested on latest react-native-navigation?

Help us reproduce this issue!

And while building a automatic file tab open Android-Autolinking.Cmake containing the code

This code was generated by React Native

cmake_minimum_required(VERSION 3.13) set(CMAKE_VERBOSE_MAKEFILE on)

We set REACTNATIVE_MERGED_SO so libraries/apps can selectively decide to depend on either libreactnative.so

or link against a old prefab target (this is needed for React Native 0.76 on).

set(REACTNATIVE_MERGED_SO true)

add_subdirectory(C:/Users/Dell/Desktop/My Android Apps/week4/node_modules/react-native-safe-area-context/android/src/main/jni/ safeareacontext_autolinked_build) add_subdirectory(C:/Users/Dell/Desktop/My Android Apps/week4/node_modules/react-native-screens/android/src/main/jni/ rnscreens_autolinked_build)

set(AUTOLINKED_LIBRARIES react_codegen_safeareacontext react_codegen_rnscreens ) it sound like some issue belongs to this File

In what environment did this happen?

React Native Navigation version: React Native version: 0.76.1 Has Fabric (React Native's new rendering system) enabled: (yes/no) yes Node version: 20.17.0 Device model: Virtual Android version:14

ningtt commented 2 weeks ago

我在等待回复,我有相同的问题。