【问题标题】:I am running into this error: Exception: Gradle task assembleDebug failed with exit code -1我遇到了这个错误:异常:Gradle task assembleDebug failed with exit code -1
【发布时间】:2021-04-06 13:31:27
【问题描述】:

我是初学者,正在努力学习 Flutter。 我正在尝试运行一个颤振项目,但遇到了这个错误。异常:Gradle 任务 assembleDebug 失败,退出代码为 -1

我从 Android Studio 开始,但我遇到了错误,然后我切换到 VScode,但即使在那里我仍然遇到同样的错误。 任何人都知道我能做什么?这是屏幕截图。

【问题讨论】:

  • 请不要截图文字。将用 ``` 括起来的文本单独粘贴到文本之前和之后的一行。
  • 请确保您接受 SDK 许可并安装了所有必需的插件,然后重试。

标签: android flutter flutter-layout flutter-dependencies


【解决方案1】:

您需要接受 Android 许可。 尝试flutter doctor --android-licenses 接受。

【讨论】:

    猜你喜欢
    • 2021-09-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-06
    • 1970-01-01
    • 2020-06-22
    • 1970-01-01
    相关资源
    最近更新 更多