我一直在与这个问题斗争,因为昨天我升级后,我的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
2条答案
按热度按时间v8wbuo2f1#
我曾经遇到过类似的问题。我只是删除了flutter和重新安装最新版本直接下载稳定的zip文件从https://flutter.dev/docs/get-started/install
rkttyhzu2#
进程“command”C:\src\flutter\bin\flutter.bat“已完成,退出值为非零% 1
请给予这种错误的解决方法。