Error de compilación de Android nativo de reacción en macOS Monterey

1 minuto de lectura

Recientemente actualicé a macOS Monterey. pero de repente no funciona.
(solo construye andorid, ios está bien)

el comando es ‘npm run android’ (react-native run-android).

el mensaje de error es..

FAILURE: Build failed with an exception.

* Where:
Script '/Users/byun/Desktop/program/github/dadokdadok/app/node_modules/react-native/react.gradle' line: 395

* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:copyDebugBundledJs'.
   > Could not create task ':app:mergeDebugAssets'.
      > Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

* 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 5s

No sé por qué.. por favor dime..

¿Ha sido útil esta solución?