【问题标题】:Flutter build error "Exception: Gradle task assembleDebug failed with exit code 1"Flutter 构建错误“异常:Gradle 任务 assembleDebug 失败,退出代码为 1”
【发布时间】:2021-02-09 21:48:00
【问题描述】:

伙计们,我是 Flutter 的新手,每当我尝试运行所有内容时,我都会遇到相同的错误,我尝试了在网上可以找到的所有内容,但它仍然无法正常工作。请各位帮忙

This is the output of Run

this is the output of logcat-Verbose

【问题讨论】:

标签: flutter


【解决方案1】:
  1. 打开Android Studio

  2. 转到File->Other Settings->Default Project Structure/JDK Location

  3. 并复制那里指定的任何字符串

在文件定位器目录窗口中,右键单击This PC

Properties -> Advanced System Settings -> Environment Variables... -> System Variables

点击系统变量下的New按钮,然后分别输入粘贴:

变量名:JAVA_HOME

变量值:Which you have copied earlier in step 3

【讨论】:

  • 我做了同样的事情,但我仍然得到同样的东西。我需要单独安装java吗? (不要介意这些愚蠢的问题,我是菜鸟?)
猜你喜欢
  • 2021-05-24
  • 2021-06-20
  • 2020-11-06
  • 2021-07-08
  • 2020-08-18
  • 2020-06-04
  • 2021-08-02
  • 2020-10-31
  • 2021-06-24
相关资源
最近更新 更多