-
Notifications
You must be signed in to change notification settings - Fork 270
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
Multiple File not found error in React Native 0.76.0 #662
Comments
Same here. |
Same here. |
same here |
Actually, looks like there's already a fix in main, just hasn't been released yet: e472653 Applying this fix manually with patch-package for now seems to have done the trick for us. |
Literally we can just apply the same patch to multiple libraries to make them work 😂 I will wait for the release because I hate patching a package 🥲 |
Yup, same here, seems to be a lot of libs that need this fix. Probably going to hold off as well for a bit. |
Hello everyone! |
patch:
diff --git a/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt b/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt
index d338ae0..f720c8e 100644
--- a/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt
+++ b/node_modules/@react-native-community/slider/android/src/main/jni/CMakeLists.txt
@@ -37,27 +37,38 @@ target_include_directories(
${LIB_ANDROID_GENERATED_COMPONENTS_DIR}
)
-target_link_libraries(
- ${LIB_TARGET_NAME}
- fbjni
- folly_runtime
- glog
- jsi
- react_codegen_rncore
- react_debug
- react_render_componentregistry
- react_render_core
- react_render_debug
- react_render_graphics
- react_render_imagemanager
- react_render_mapbuffer
- react_utils
- react_nativemodule_core
- rrc_image
- turbomodulejsijni
- rrc_view
- yoga
-)
+# https://github.com/react-native-community/discussions-and-proposals/discussions/816
+# This if-then-else can be removed once this library does not support version below 0.76
+if (REACTNATIVE_MERGED_SO)
+ target_link_libraries(
+ ${LIB_TARGET_NAME}
+ fbjni
+ jsi
+ reactnative
+ )
+else()
+ target_link_libraries(
+ ${LIB_TARGET_NAME}
+ fbjni
+ folly_runtime
+ glog
+ jsi
+ react_codegen_rncore
+ react_debug
+ react_render_componentregistry
+ react_render_core
+ react_render_debug
+ react_render_graphics
+ react_render_imagemanager
+ react_render_mapbuffer
+ react_utils
+ react_nativemodule_core
+ rrc_image
+ turbomodulejsijni
+ rrc_view
+ yoga
+ )
+endif()
target_compile_options(
${LIB_TARGET_NAME} |
@BartoszKlonowski Thanks for merging the fix and please let us know once this get released 🙂 |
Dears, letting you all know that v4.5.5 is now released! |
Environment
are you using the new architecture?
Yes
which version of react & react-native are you using?
react: 18.3.1
react-native: 0.76.0
Description
After i enabled new architecture for android in latest version of react native, It started giving me the following errors
Full Log
The text was updated successfully, but these errors were encountered: