-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
not building in windows android - 0.76.2 #47654
Comments
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
same issue |
See This Answer And it should fix your issue I made a PR to solve this issue in the core |
same issue +1. |
Same issue as well. Thanks for your solution @FouadMagdy01 , it's a lifesaver. |
same issue here, thx for @FouadMagdy01 's solution, it works for me. patches/react-native+0.76.2.patch diff --git a/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake b/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake
index 805ef11..3810620 100644
--- a/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake
+++ b/node_modules/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake
@@ -33,12 +33,18 @@ endif(CCACHE_FOUND)
set(BUILD_DIR ${PROJECT_BUILD_DIR})
if(CMAKE_HOST_WIN32)
string(REPLACE "\\" "/" BUILD_DIR ${BUILD_DIR})
+ string(REPLACE "\\" "/" REACT_ANDROID_DIR ${REACT_ANDROID_DIR})
endif()
file(GLOB input_SRC CONFIGURE_DEPENDS
${REACT_ANDROID_DIR}/cmake-utils/default-app-setup/*.cpp
${BUILD_DIR}/generated/autolinking/src/main/jni/*.cpp)
+# Ensure that `input_SRC` paths use forward slashes
+foreach(path IN LISTS input_SRC)
+ string(REPLACE "\\" "/" path "${path}")
+endforeach()
+
add_library(${CMAKE_PROJECT_NAME} SHARED ${input_SRC})
target_include_directories(${CMAKE_PROJECT_NAME}
|
same issue +1 |
Fixed in v0.76.3 |
Description
im just starting the app by npm start and opening in android by pressing "a". build fails
Steps to reproduce
n/a
React Native Version
0.76.2
Affected Platforms
Runtime - Android, Build - Windows
Areas
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
n/a
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: