gpt4 book ai didi

react-native - 任务 :react-native-screens:compileDebugJavaWithJavac FAILED

转载 作者:行者123 更新时间:2023-12-04 04:17:34 27 4
gpt4 key购买 nike

我正在使用 react navigation v5 .. 安装了所有依赖项.. 现在我遇到了上面的错误..
FAILURE:构建失败,出现异常。

* What went wrong:
Execution failed for task ':react-native-screens:compileDebugJavaWithJavac'.
> java.lang.reflect.UndeclaredThrowableException

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings

最佳答案

我认为这个问题仍然在 GitHub 问题上开放 -> View

如果你的 React Native Version < 0.60 那么你可以使用 Jetifier 来解决这个问题

How to use Jetifier to solve ?

  • yarn add --dev jetify
  • 然后在你的 package.json 脚本中添加:
  • "postinstall": "jetify"
  • yarn jetify

  • 如果你的 React Native 版本 0.60 > 然后试试这个
    cd android && ./gradlew clean

    关于react-native - 任务 :react-native-screens:compileDebugJavaWithJavac FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60313681/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com