cli icon indicating copy to clipboard operation
cli copied to clipboard

Build fails at :app:buildCMakeDebug[arm64-v8a] during SafeAreaContext codegen linking on Android (React Native 0.76.3)

Open HarshHingu opened this issue 2 months ago • 2 comments

Task :app:buildCMakeDebug[arm64-v8a] FAILED

[Incubating] Problems report is available at: file:///C:/Users/Harsh%20Hingu/Documents/shoppingsearch/android/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.1.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 52 actionable tasks: 42 executed, 10 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

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

com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\Harsh Hingu\Documents\shoppingsearch\android\app.cxx\Debug\611o1ib4\arm64-v8a' [0/2] Re-checking globbed directories... [1/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/bb9dae1c13de02fd1c8aa79bf7336c02/renderer/components/safeareacontext/States.cpp.o [2/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/500fecd91ec3d0cafce40e4f5e9270e3/components/safeareacontext/EventEmitters.cpp.o [3/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/3b8cee6e4602252beea74bb5098134da/codegen/jni/safeareacontext-generated.cpp.o [4/13] Building CXX object CMakeFiles/appmodules.dir/OnLoad.cpp.o [5/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/64ec20a12c193799b3166dd9e2ea0fd3/safeareacontext/RNCSafeAreaViewState.cpp.o [6/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/500fecd91ec3d0cafce40e4f5e9270e3/components/safeareacontext/ShadowNodes.cpp.o [7/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/bb9dae1c13de02fd1c8aa79bf7336c02/renderer/components/safeareacontext/Props.cpp.o [8/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/66a1653156f0c161158dfa22182c8204/safeareacontext/ComponentDescriptors.cpp.o [9/13] Building CXX object CMakeFiles/appmodules.dir/C_/Users/Harsh_Hingu/Documents/shoppingsearch/android/app/build/generated/autolinking/src/main/jni/autolinking.cpp.o [10/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/64ec20a12c193799b3166dd9e2ea0fd3/safeareacontext/RNCSafeAreaViewShadowNode.cpp.o [11/13] Building CXX object safeareacontext_autolinked_build/CMakeFiles/react_codegen_safeareacontext.dir/3de637fbaab2b68b999156bcbb0f22c8/safeareacontextJSI-generated.cpp.o [12/13] Linking CXX shared library "C:\Users\Harsh Hingu\Documents\shoppingsearch\android\app\build\intermediates\cxx\Debug\611o1ib4\obj\arm64-v8a\libreact_codegen_safeareacontext.so" FAILED: C:/Users/Harsh Hingu/Documents/shoppingsearch/android/app/build/intermediates/cxx/Debug/611o1ib4/obj/arm64-v8a/libreact_codegen_safeareacontext.so

HarshHingu avatar Oct 13 '25 04:10 HarshHingu

Well same error one my friend got when he tried with fresh react native cli project with react native version of 0.82.1

amithashtechy avatar Dec 02 '25 13:12 amithashtechy

This error occurs because some of the c++ code is compiled using Visual Studio build tools. Make sure that you install Visual Studio and the supporting libraries before you run this project

TrevarnG avatar Dec 09 '25 12:12 TrevarnG