0

下面是什么问题?最近更新颤振,然后得到这个错误。


FAILURE: Build failed with an exception.

* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\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 9s
Exception: Gradle task assembleDebug failed with exit code 1
4

1 回答 1

0

您也可以通过缩短路径目录来解决此问题。复制项目文件夹/文件并粘贴到桌面或任何较短的目录中。将项目重新导入 Android Studio 或您的 IDE 并调试并覆盖现有项目。它对我有用。谢谢。

于 2021-06-11T13:12:29.413 回答