请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

$ 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

请问一下这是什么问题

正在回答 回答被采纳积分+3

1回答

CrazyCodeBoy 2021-08-26 09:06:34

重装下react-native-reanimated

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信