Flutter Compiler fail

记一次flutter,编译时遇见问题.
log如下:
Compiler message:
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Can't find '}' to match '{'.
{
^
Compiler failed on D:\android\flutter_demo\workpace\flutter_app\lib\main.dart
Finished with error: Gradle task assembleDebug failed with exit code 1

解决方案:执行flutter clean或者删除build文件夹即可.

推荐阅读更多精彩内容