格式不正确的定义标志:EDIT _ flutter

Improperly formatted define flag: EDIT _ flutter

下面是什么问题?最近更新flutter,然后报这个错


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

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