gpt4 book ai didi

android - 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。 flutter

转载 作者:行者123 更新时间:2023-12-04 11:44:09 24 4
gpt4 key购买 nike

所以我最近切换到flutter beta channel flutter 1.26.0 - 17.6.pre,我已经做了一个可以正常运行的web项目,所以最近我尝试做一个移动应用程序项目,它是第一次构建的,之后我保持从 gradle 获取此错误日志。

[+155045 ms] FAILURE: Build failed with an exception.
[ +55 ms] * What went wrong:
[ ] org/apache/http/pool/AbstractConnPool
[ ] * 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
[ +63 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[ ] BUILD FAILED in 2m 29s
[+3846 ms] Running Gradle task 'assembleDebug'... (completed in 158.9s)
[ +204 ms] Exception: Gradle task assembleDebug failed with exit code 1


最佳答案

到目前为止我所做的事情:

  • 运行 --no-sound-null-safety 和 --verbose
  • 找到提示并检查更新的依赖项,然后在 pubspec
  • 中更新到最新版本
  • 一个依赖提示 gradle.build 中的 android min sdk 版本,所以我相应地更新了

  • 现在我可以构建到我的测试机器并解决运行时错误!

    关于android - 此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。 flutter ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66469170/

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