升级react-navigation升级5.x报错

来源:3-

慕神7231064

2021-08-25

$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 998 file(s) to forward-jetify. Using 12 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
WARNING:: Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: project ':react-native-community_masked-view', project ':react-native-safe-area-context', project ':react-native-ve
ctor-icons'
> Task :app:checkDebugAarMetadata FAILED
47 actionable tasks: 10 executed, 37 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-native-reanimated-65-jsc.aar (project :react-native-reanimated) to match attributes {artifactType=android-aar-meta
data}.
      > Execution failed for JetifyTransform: D:\RNApp\WindowEmployeesApp\node_modules\react-native-reanimated\android\react-native-reanimated-65
-jsc.aar.
         > Transform's input file does not exist: D:\RNApp\WindowEmployeesApp\node_modules\react-native-reanimated\android\react-native-reanimate
d-65-jsc.aar. (See https://issuetracker.google.com/issues/158753935)

* 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 insigh
ts.

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

BUILD FAILED in 8s

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.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-native-reanimated-65-jsc.aar (project :react-native-reanimated) to match attributes {artifactType=android-aar-meta
data}.
      > Execution failed for JetifyTransform: D:\RNApp\WindowEmployeesApp\node_modules\react-native-reanimated\android\react-native-reanimated-65
-jsc.aar.
         > Transform's input file does not exist: D:\RNApp\WindowEmployeesApp\node_modules\react-native-reanimated\android\react-native-reanimate
d-65-jsc.aar. (See https://issuetracker.google.com/issues/158753935)

* 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 insigh
ts.

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

BUILD FAILED in 8s

    at makeError (D:\RNApp\WindowEmployeesApp\node_modules\execa\index.js:174:9)
    at D:\RNApp\WindowEmployeesApp\node_modules\execa\index.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async runOnAllDevices (D:\RNApp\WindowEmployeesApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\run
OnAllDevices.js:106:5)
    at async Command.handleAction (D:\RNApp\WindowEmployeesApp\node_modules\@react-native-community\cli\build\index.js:186: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.

Process finished with exit code 1

请问一下这是什么问题

写回答

1回答

CrazyCodeBoy

2021-08-26

重装下react-native-reanimated

0
0

RN入门到进阶,打造高质量上线App

解锁React Native开发应用新姿势,React Native新版本热门技术

3170 学习 · 3256 问题

查看课程