Код: Выделить всё
npm run start --clear-cache
< /code>
и < /p>
npx react-native run-android
< /code>
Установленная версия: < /p>
"react-native-reanimated": "^3.3.0",
< /code>
Это выход, который я получаю всякий раз, когда я пытаюсь запустить проект с установленным пакетом. Я подозреваю, что между версией пакета и Градлом существует несоответствие. Однако 3.3.0 - последний выпуск пакета. < /P>
> Configure project :react-native-reanimated
No AAR for react-native-reanimated found. Attempting to build from source.
Android gradle plugin: 7.4.1
Gradle: 7.5.1
...
-- Build files have been written to: C:/Work/repositories/react-native-client/node_modules/react-native-reanimated/android/.cxx/Debug/181x6l2t/arm64-v8a
C++ build system [build] failed while executing:
@echo off
"C:\\Users\\AppData\\Local\\Android\\Sdk\\cmake\\3.22.1\\bin\\ninja.exe" ^
-C ^
"C:\\Work\\repositories\\react-native-client\\node_modules\\react-native-reanimated\\android\\.cxx\\Debug\\181x6l2t\\arm64-v8a" ^
reanimated
from C:\Work\repositories\react-native-client\node_modules\react-native-reanimated\android
ninja: error: manifest 'build.ninja' still dirty after 100 tries
* 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.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 35s
at makeError (....\react-native-client\node_modules\execa\index.js:174:9)
at ....\react-native-client\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (....\react-native-client\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (....\react-native-client\node_modules\@react-native-community\cli\build\index.js:108:9)
info Run CLI with --verbose flag for more details.
./gradlew clean
:ReactNative:Running '[node, -e, try {console.log(require('@react-native-community/cli').bin);} catch (e) {console.log(require('react-native/cli').bin);}]' command failed.
FAILURE: Build failed with an exception.
* Where:
Script '/mnt/c/repositories/Pension/react-native-client/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 397
* What went wrong:
A problem occurred evaluating script.
> Cannot run program "node" (in directory "/mnt/c/repositories/Pension/react-native-client/android"): error=2, No such file or directory
* 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
< /code>
Как я могу решить эту проблему? Что, вероятно, означает, что это ошибка с их стороны.>
Подробнее здесь: https://stackoverflow.com/questions/766 ... ject-build
Мобильная версия