expo / create-react-native-app

Create React Native apps that run on iOS, Android, and web
BSD 3-Clause "New" or "Revised" License
13.26k stars 1.35k forks source link

Build Failures and Configuration Issues in Expo React Native Application #925

Closed damie824 closed 1 year ago

damie824 commented 1 year ago

Describe the bug

During the build process of a React Native application using Expo, multiple issues occurred, leading to build failures. The errors involved problems with configuring CMake for expo-modules-core on arm64-v8a architecture, as well as a java.lang.StackOverflowError during the Gradle build.

Error :

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':expo-modules-core:configureCMakeDebug[arm64-v8a]'.
> [CXX1429] error when building with cmake using D:\Works\Programs\App\damovie-app\node_modules\expo-modules-core\android\CMakeLists.txt: C++ build system [prefab] failed while executing:
      @echo off
      "C:\\Program Files\\Microsoft\\jdk-11.0.18.10-hotspot\\bin\\java" ^
        --class-path ^
        "\\.gradle\\caches\\modules-2\\files-2.1\\com.google.prefab\\cli\\2.0.0\\f2702b5ca13df54e3ca92f29d6b403fb6285d8df\\cli-2.0.0-all.jar" ^
        com.google.prefab.cli.AppKt ^
        --build-system ^
        cmake ^
        --platform ^
        android ^
        --abi ^
        arm64-v8a ^
        --os-version ^
        21 ^
        --stl ^
        c++_shared ^
        --ndk-version ^
        23 ^
        --output ^
        "\\AppData\\Local\\Temp\\agp-prefab-staging18342925349014282058\\staged-cli-output" ^
        "\\.gradle\\caches\\transforms-3\\f06427f9be24070710ac14820dc5d52f\\transformed\\jetified-react-android-0.71.8-debug\\prefab" ^
        "\\.gradle\\caches\\transforms-3\\e34348509d4115f5295bdc4936110f32\\transformed\\jetified-fbjni-0.3.0\\prefab"
    from D:\Works\Programs\App\damovie-app\node_modules\expo-modules-core\android
  ?????? ??θ? ??? ?? ???????.
  ?????? ??θ? ??? ?? ???????.
  'efab.cli.AppKt'??(??) ???? ??? ??? ???, ?????? ?? ??? ???α??, ???
  ??? ?????? ?????.
  '--ndk-version'??(??) ???? ??? ??? ???, ?????? ?? ??? ???α??, ???
  ??? ?????? ?????.
  ?????? ??θ? ??? ?? ???????.
  ?????? ??θ? ??? ????????.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

Desktop:

OS: Windows

ehsan342 commented 1 year ago

my app is build successfully but not connected to broker after installation on real device on the other hand this app works well in expo go and connected to broker perfectly

damie824 commented 1 year ago

I solved this with formatting my windows desktop.