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

Error while enabling React Native New Architecture #56

Open
arjunAbcd opened this issue Nov 28, 2024 · 1 comment
Open

Error while enabling React Native New Architecture #56

arjunAbcd opened this issue Nov 28, 2024 · 1 comment

Comments

@arjunAbcd
Copy link

arjunAbcd commented Nov 28, 2024

Error

What went wrong:
Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.

[CXX1429] error when building with cmake using Project_path ..../node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup/CMakeLists.txt: -- Configuring incomplete, errors occurred! See also "Project_path ..../android/app/.cxx/Debug/6do1z145/arm64-v8a/CMakeFiles/CMakeOutput.log". C++ build system [configure] failed while executing: /Users/userName/Library/Android/sdk/cmake/3.22.1/bin/cmake \ -H/Project_path ..../node_modules/react-native/ReactAndroid/cmake-utils/default-app-setup \ -DCMAKE_SYSTEM_NAME=Android \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_SYSTEM_VERSION=24 \ -DANDROID_PLATFORM=android-24 \ -DANDROID_ABI=arm64-v8a \ -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \ -DANDROID_NDK=/Users/userName/Library/Android/sdk/ndk/26.1.10909125 \ -DCMAKE_ANDROID_NDK=/Users/userName/Library/Android/sdk/ndk/26.1.10909125 \ -DCMAKE_TOOLCHAIN_FILE=/Users/userName/Library/Android/sdk/ndk/26.1.10909125/build/cmake/android.toolchain.cmake ....

React Native Version

0.76.3

Reproduce Issue

Found issue only when new architecture enable in android/gradle.properties
newArchEnabled= true

if newArchEnabled= false project runs successfully.

Is there any solution for this ?

@ArturBuja
Copy link

try this package:
https://www.npmjs.com/package/rn-screenshot-prevent

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

No branches or pull requests

2 participants