React-native ошибка сборки в строке 'node_modules \ @ реагировать-native-community \ cli-platform-android \ native_modules.gradle': 307 - PullRequest
0 голосов
/ 01 мая 2020

У меня возникли проблемы с моим реактивным приложением. До переустановки windows все работало нормально, после того, как я переустанавливал все из android studio, всякий раз, когда я пытаюсь запустить «response-native run- android», это показывает

$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1041 file(s) to forward-jetify. Using 2 workers...
info Starting JS server...
info Installing the app...
Starting a Gradle Daemon, 2 busy and 2 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\Robin\Documents\IntoNovus\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line:
307

* What went wrong:
A problem occurred evaluating project ':app'.
> native_modules_8hkbashcmevmu4l7wc13mmhka$_run_closure2$_closure4$_closure6$_closure7$_closure8

* 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 3m 12s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment.
Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\Robin\Documents\IntoNovus\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line:
307

* What went wrong:
A problem occurred evaluating project ':app'.
> native_modules_8hkbashcmevmu4l7wc13mmhka$_run_closure2$_closure4$_closure6$_closure7$_closure8

* 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 3m 12s

    at checkExecSyncError (child_process.js:621:11)
    at execFileSync (child_process.js:639:15)
    at runOnAllDevices (C:\Users\Robin\Documents\IntoNovus\node_modules\react-native\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
    at buildAndRun (C:\Users\Robin\Documents\IntoNovus\node_modules\react-native\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
    at C:\Users\Robin\Documents\IntoNovus\node_modules\react-native\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:133:12
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Command.handleAction (C:\Users\Robin\Documents\IntoNovus\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:182:9)

Пока что сделано: обновление npm до последней версии с использованием npm install npm@latest удаленных узловых модулей и запуск npm install

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...