【问题标题】:flutter: error after pub add path_provider颤振:发布添加路径提供程序后出错
【发布时间】:2022-08-17 18:48:24
【问题描述】:

仅在安装 path_provider 后出现错误

颤振酒吧添加 path_provider

错误

FAILURE: Build failed with an exception.

* Where:
Script \'/opt/homebrew/Caskroom/flutter/3.0.2/flutter/packages/flutter_tools/gradle/flutter.gradle\' line: 1156

* What went wrong:
Execution failed for task \':app:compileFlutterBuildDebug\'.
> Process \'command \'/opt/homebrew/Caskroom/flutter/3.0.2/flutter/bin/flutter\'\' finished with non-zero exit value 1

* 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 11s
Exception: Gradle task assembleDebug failed with exit code 1
Exited
  • 您是否尝试过flutter clean && flutter pub get 并再次尝试?
  • 已经试过了,还是一样的错误
  • 您必须更好地调查或使用更多情报编辑您的问题

标签: flutter


【解决方案1】:

使用自制软件,尝试使用任何 cask 命令。例如,试试这个命令,为我工作:

brew tap homebrew/cask

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-07-12
    • 2021-10-23
    • 2022-11-02
    • 2021-07-18
    • 2021-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多