Open abhishekjmd opened 1 year ago
I cloned the project did yarn install and then yarn android and got this error
exactly the same problem here. did you find a solution?
didnt found any solution
me too and collegue also shound use a defferent builf env like linux unix ...
The same error coming on my windows while running the Rocket.Chat.ReactNative android. Maybe It seems like currently, the project is not supported in Windows, that's the issue for Windows users, I think Rocket.Chat.ReactNative Team has to look out for and solve this issue so that anyone can test the app on Windows as well.
I am also facing the same issue
I encountered an error while attempting to build and install the app using the 'yarn android' command. The error message and relevant details are as follows:
-----------------------------------***------------------------------------------------------
Error: Command failed: gradlew.bat app:installExperimentalPlayDebug -PreactNativeDevServerPort=8081 CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.
CMake Error at CMakeLists.txt:64 (project): Running
'nmake' '-?'
failed with:
The system cannot find the file specified
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native:ReactAndroid:hermes-engine:configureBuildForHermes'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 29m 47s
info Run CLI with --verbose flag for more details.
-----------------------------------***------------------------------------------------------
I have ensured that I have the Android development environment set up following the instructions provided in the React Native documentation. However, the build process encountered the following issues:
Deprecation warning related to policy CMP0026 in CMakeLists.txt. CMake errors related to 'nmake' and missing compiler settings (CMAKE_C_COMPILER and CMAKE_CXX_COMPILER). Failure during the task ':react-native:ReactAndroid:hermes-engine:configureBuildForHermes' with a non-zero exit value. I have tried running the command with additional options such as '--stacktrace', '--info', and '--debug', but the error persists.
I would appreciate any assistance in resolving this build error and successfully installing the app. Thank you for your help.
Operating system: 64-bit operating system, x64-based processor Node.js version: v18.16.0 Yarn version: 1.22.19 React Native version: 0.71.7