-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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 0.78.0 Android Build Failing with CMake Errors - Missing JNI Directories #49888
Comments
I am also facing same issue, can't make a fresh app using react-native 0.78.0 |
Facing same using react native 0.74 version @rupertpople please figure out this issue in android build creating build first get fliper issue if i remove flipper issue in the gradle then issue comes autolinking issue that autolining.json not exist |
Hello @rupertpople, |
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
@cortinico can you also have a look at this? Perhaps you can spot something from the stacktrace that has been shared. This looks very like an issue with autolinking. |
@cipolleschi, can confirm that autolinking.json is present. |
It is is present there but it giving error it comes few day back we are not able to fix this issue need to create android build we stuck over it
|
@rupertpople your reproducer does not reproduce the issue:
Please update it so that we can reproduce it as well |
@harjot96 @piyush362 are you using Firebase in your project? I am not sure, but I think I have noticed it happening coincidentally with it's use. @cortinico I will have to work on getting a reproducable error. I think initially react may work but when implementing other plugins (like Firebase) it goes wrong. |
Yes We are using firebase for push notification |
@cortinico The error should be reproducable now |
Description
Written by Gemini:
I'm encountering persistent CMake errors when trying to build my React Native 0.78.0 Android app. The errors consistently point to missing jni directories within several packages, specifically u/react-native-async-storage/async-storage, react-native-gesture-handler, and react-native-reanimated.
The error message is: add_subdirectory given source "..." which is not an existing directory.
Here's what I've tried so far:
Checked NDK and CMake installations (versions seem correct).
Cleaned Gradle and rebuilt the project.
Invalidated Android Studio caches.
Inspected the CMake output log (no immediate errors related to compiler/linker).
Verified that the React Native version is 0.78.0, and understand the react 19 dependancy changes.
Inspected the autolinking files, and confirmed that the paths are incorrect.
Confirmed that some of the packages should contain jni folders, and some packages may not.
The problem seems to be related to the autolinking process and the presence/absence of jni directories in these dependencies. I'm struggling to pinpoint the exact cause.
Steps to reproduce
install npm
npx react-native run-android
React Native Version
0.78.0
Affected Platforms
Runtime - Android, Build - Windows
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/rupertpople/reactError
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: