Flutter Windows 构建失败,错误 LNK1104

问题描述

我在为 windows 启动 Flutter 时遇到这个错误

Launching lib\main.dart on Windows in debug mode...
lib\main.dart:1
LINK : Fatal error LNK1104: cannot open file 'D:\DSI projects\gst_api\example\build\windows\runner\Debug\example.exe' 
[D:\DSI projects\gst_api\example\build\windows\runner\example.vcxproj]
Exception: Build process Failed.
Exited (sigterm)

解决方法

运行flutter clean后问题得到解决,但我不知道这个问题的主要原因