Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
adeelbhai22 opened this issue Oct 30, 2024 · 1 comment
Open
1 task done

Comments

@adeelbhai22
Copy link

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?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

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
Copy link

ningtt commented Nov 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants