react-native: got 2 errors of gradle when running new arch for the first time

Description

when running new arch for the first time, i got two errors: Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED Task :app:generateCodegenSchemaFromJavaScript FAILED

Version

0.69.3

Output of npx react-native info

System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
    CPU: (4) x64 Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
    Memory: 671.46 MB / 3.71 GB
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: Not Found
    Yarn: Not Found
    npm: Not Found
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
  IDEs:
    Android Studio: AI-212.5712.43.2112.8609683
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.69.3 => 0.69.3 
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

  1. Changed newArchEnabled to true

Snack, code example, screenshot, or link to a repository

FULL STACKTRACE:

yarn android
yarn run v1.22.19
$ react-native run-android
warn Package react-native-flipper contains invalid configuration: "dependency.platforms.ios.project" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1451 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
* daemon not running; starting now at tcp:5037
* daemon started successfully
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :lottie-react-native
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

> Configure project :react-native-firebase_analytics
:react-native-firebase_analytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_analytics:firebase.bom using default value: 30.3.0
:react-native-firebase_analytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_analytics:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_analytics:android.compileSdk using custom value: 33
:react-native-firebase_analytics:android.targetSdk using custom value: 33
:react-native-firebase_analytics:android.minSdk using custom value: 24
:react-native-firebase_analytics:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:firebase.bom using default value: 30.3.0
:react-native-firebase_app:play.play-services-auth using default value: 20.2.0
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_app:android.compileSdk using custom value: 33
:react-native-firebase_app:android.targetSdk using custom value: 33
:react-native-firebase_app:android.minSdk using custom value: 24
:react-native-firebase_app:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_app-check
:react-native-firebase_app-check package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app-check/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app-check:firebase.bom using default value: 30.3.0
:react-native-firebase_app-check package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app-check/package.json
:react-native-firebase_app-check:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_app-check:android.compileSdk using custom value: 33
:react-native-firebase_app-check:android.targetSdk using custom value: 33
:react-native-firebase_app-check:android.minSdk using custom value: 24
:react-native-firebase_app-check:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_auth
:react-native-firebase_auth package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_auth:firebase.bom using default value: 30.3.0
:react-native-firebase_auth package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/auth/package.json
:react-native-firebase_auth:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_auth:android.compileSdk using custom value: 33
:react-native-firebase_auth:android.targetSdk using custom value: 33
:react-native-firebase_auth:android.minSdk using custom value: 24
:react-native-firebase_auth:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_crashlytics
:react-native-firebase_crashlytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/crashlytics/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_crashlytics:firebase.bom using default value: 30.3.0
:react-native-firebase_crashlytics package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/crashlytics/package.json
:react-native-firebase_crashlytics:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_crashlytics:android.compileSdk using custom value: 33
:react-native-firebase_crashlytics:android.targetSdk using custom value: 33
:react-native-firebase_crashlytics:android.minSdk using custom value: 24
:react-native-firebase_crashlytics:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_database
:react-native-firebase_database package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/database/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_database:firebase.bom using default value: 30.3.0
:react-native-firebase_database package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/database/package.json
:react-native-firebase_database:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_database:android.compileSdk using custom value: 33
:react-native-firebase_database:android.targetSdk using custom value: 33
:react-native-firebase_database:android.minSdk using custom value: 24
:react-native-firebase_database:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_firestore
:react-native-firebase_firestore package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/firestore/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_firestore:firebase.bom using default value: 30.3.0
:react-native-firebase_firestore package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/firestore/package.json
:react-native-firebase_firestore:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_firestore:android.compileSdk using custom value: 33
:react-native-firebase_firestore:android.targetSdk using custom value: 33
:react-native-firebase_firestore:android.minSdk using custom value: 24
:react-native-firebase_firestore:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-firebase_storage
:react-native-firebase_storage package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/storage/package.json
:react-native-firebase_app package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_storage:firebase.bom using default value: 30.3.0
:react-native-firebase_storage package.json found at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-firebase/storage/package.json
:react-native-firebase_storage:version set from package.json: 15.2.0 (15,2,0 - 15002000)
:react-native-firebase_storage:android.compileSdk using custom value: 33
:react-native-firebase_storage:android.targetSdk using custom value: 33
:react-native-firebase_storage:android.minSdk using custom value: 24
:react-native-firebase_storage:reactNativeAndroidDir /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/android

> Configure project :react-native-flipper
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.2.1) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33

> Configure project :react-native-mmkv
MMKV: node_modules/ found at: /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules
WARNING:DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.

> Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-reanimated/android/react-native-reanimated-69-hermes.aar
WARNING:The specified Android SDK Build Tools version (29.0.2) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.2.1.
Android SDK Build Tools 30.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '29.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :ReactAndroid:hermes-engine:downloadHermes
Download https://github.com/facebook/hermes/tarball/hermes-2022-05-20-RNv0.69.0-ee8941b8874132b8f83e4486b63ed5c19fc3f111

> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Configuring incomplete, errors occurred!
See also "/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/CMakeFiles/CMakeOutput.log".

> Task :ReactAndroid:hermes-engine:configureBuildForHermes FAILED

> Task :app:generateCodegenSchemaFromJavaScript
Execution optimizations have been disabled for task ':app:generateCodegenSchemaFromJavaScript' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform'. Reason: Task ':app:generateCodegenSchemaFromJavaScript' uses this output of task ':ReactAndroid:extractNativeDependencies' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform'. Reason: Task ':app:generateCodegenSchemaFromJavaScript' uses this output of task ':ReactAndroid:hermes-engine:unzipHermes' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.

> Task :app:generateCodegenSchemaFromJavaScript FAILED

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

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

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
11 actionable tasks: 10 executed, 1 from cache
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: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:190
        throw parsingErrors[0];
        ^

UnusedModuleTypeScriptInterfaceParserError: Module NativeSafeAreaContext.d: Unused NativeModule spec. Please load the NativeModule by calling TurboModuleRegistry.get<Spec>('<moduleName>').
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:810:13
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildModuleSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:799:22)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:179:9
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:178:22)
    at Object.parseFile (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:209:10)
    at files.reduce.modules (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
    at Array.reduce (<anonymous>)
    at combineSchemas (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:71:16) {
  nodes: [
    Node {
      type: 'TSInterfaceDeclaration',
      start: 161,
      end: 588,
      loc: SourceLocation {
        start: Position { line: 3, column: 7, index: 161 },
        end: Position { line: 20, column: 1, index: 588 },
        filename: undefined,
        identifierName: undefined
      },
      id: Node {
        type: 'Identifier',
        start: 171,
        end: 175,
        loc: SourceLocation {
          start: Position { line: 3, column: 17, index: 171 },
          end: Position { line: 3, column: 21, index: 175 },
          filename: undefined,
          identifierName: 'Spec'
        },
        name: 'Spec'
      },
      typeParameters: undefined,
      extends: [
        Node {
          type: 'TSExpressionWithTypeArguments',
          start: 184,
          end: 195,
          loc: SourceLocation {
            start: [Position],
            end: [Position],
            filename: undefined,
            identifierName: undefined
          },
          expression: Node {
            type: 'Identifier',
            start: 184,
            end: 195,
            loc: [SourceLocation],
            name: 'TurboModule'
          }
        }
      ],
      body: Node {
        type: 'TSInterfaceBody',
        start: 196,
        end: 588,
        loc: SourceLocation {
          start: Position { line: 3, column: 42, index: 196 },
          end: Position { line: 20, column: 1, index: 588 },
          filename: undefined,
          identifierName: undefined
        },
        body: [
          Node {
            type: 'TSPropertySignature',
            start: 202,
            end: 586,
            loc: [SourceLocation],
            key: [Node],
            computed: false,
            typeAnnotation: [Node]
          }
        ]
      }
    }
  ]
}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
> Process 'command '/home/sectiontn/Android/Sdk//cmake/3.18.1/bin/cmake'' finished with non-zero exit value 1

* 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:
Execution failed for task ':app:generateCodegenSchemaFromJavaScript'.
> Process 'command 'node'' finished with non-zero exit value 1

* 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.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 23s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -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: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:190
        throw parsingErrors[0];
        ^

UnusedModuleTypeScriptInterfaceParserError: Module NativeSafeAreaContext.d: Unused NativeModule spec. Please load the NativeModule by calling TurboModuleRegistry.get<Spec>('<moduleName>').
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:810:13
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildModuleSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/modules/index.js:799:22)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:179:9
    at guard (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/utils.js:111:14)
    at buildSchema (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:178:22)
    at Object.parseFile (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/parsers/typescript/index.js:209:10)
    at files.reduce.modules (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
    at Array.reduce (<anonymous>)
    at combineSchemas (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:71:16) {
  nodes: [
    Node {
      type: 'TSInterfaceDeclaration',
      start: 161,
      end: 588,
      loc: SourceLocation {
        start: Position { line: 3, column: 7, index: 161 },
        end: Position { line: 20, column: 1, index: 588 },
        filename: undefined,
        identifierName: undefined
      },
      id: Node {
        type: 'Identifier',
        start: 171,
        end: 175,
        loc: SourceLocation {
          start: Position { line: 3, column: 17, index: 171 },
          end: Position { line: 3, column: 21, index: 175 },
          filename: undefined,
          identifierName: 'Spec'
        },
        name: 'Spec'
      },
      typeParameters: undefined,
      extends: [
        Node {
          type: 'TSExpressionWithTypeArguments',
          start: 184,
          end: 195,
          loc: SourceLocation {
            start: [Position],
            end: [Position],
            filename: undefined,
            identifierName: undefined
          },
          expression: Node {
            type: 'Identifier',
            start: 184,
            end: 195,
            loc: [SourceLocation],
            name: 'TurboModule'
          }
        }
      ],
      body: Node {
        type: 'TSInterfaceBody',
        start: 196,
        end: 588,
        loc: SourceLocation {
          start: Position { line: 3, column: 42, index: 196 },
          end: Position { line: 20, column: 1, index: 588 },
          filename: undefined,
          identifierName: undefined
        },
        body: [
          Node {
            type: 'TSPropertySignature',
            start: 202,
            end: 586,
            loc: [SourceLocation],
            key: [Node],
            computed: false,
            typeAnnotation: [Node]
          }
        ]
      }
    }
  ]
}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':ReactAndroid:hermes-engine:configureBuildForHermes'.
> Process 'command '/home/sectiontn/Android/Sdk//cmake/3.18.1/bin/cmake'' finished with non-zero exit value 1

* 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:
Execution failed for task ':app:generateCodegenSchemaFromJavaScript'.
> Process 'command 'node'' finished with non-zero exit value 1

* 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.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 23s

    at makeError (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/execa/index.js:174:9)
    at /home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/home/sectiontn/Documents/GitHub/MoonMeet-CrossPlatform/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 40 (13 by maintainers)

Most upvoted comments

Glad to see it working for you 🎉

anyway this is required to build C++ on Ubuntu, sudo apt-get install build-essential wasn’t enough.

git clone https://github.com/unicode-org/icu
cd icu/icu4c
cd source
./configure --prefix=/usr
make
sudo make install

Im facing the same issue while starting a new project in windows