【问题标题】:Improperly formatted define flag: EDIT _ flutter格式不正确的定义标志:EDIT_flutter
【发布时间】:2021-08-22 03:05:24
【问题描述】:

下面的问题是什么?最近更新了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

【问题讨论】:

  • 我已经通过更改我的文件夹路径解决了这个问题,它在文件夹名称中包含“...添加、编辑、保存”。所以这可能是问题所在。我只是更改了文件夹名称并解决了问题。

标签: flutter flutter-debug flutter-exception


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-14
    • 2017-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-12
    • 1970-01-01
    • 2010-10-15
    相关资源
    最近更新 更多