dart 进程'command“flutter.bat'已完成,但存在非零退出值1错误

iovurdzv  于 2023-06-19  发布在  Flutter
关注(0)|答案(2)|浏览(146)

我一直在与这个问题斗争,因为昨天我升级后,我的Flutter,我不知道是什么原因导致这个问题。我已经从谷歌搜索过了,但我似乎没有找到任何答案,所以我需要帮助。
我的Flutter SDK的位置和错误如下。

Script 'C:\Users\src\Music\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\src\Music\flutter\bin\flutter.bat'' 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 1m 20s
Exception: Gradle task assembleDebug failed with exit code 1
v8wbuo2f

v8wbuo2f1#

我曾经遇到过类似的问题。我只是删除了flutter和重新安装最新版本直接下载稳定的zip文件从https://flutter.dev/docs/get-started/install

rkttyhzu

rkttyhzu2#

  • 其中:脚本'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle'行:1151
  • 哪里出错了:任务“:app:compileFlutterBuildDebug”执行失败。

进程“command”C:\src\flutter\bin\flutter.bat“已完成,退出值为非零% 1
请给予这种错误的解决方法。

相关问题