Flutter之运行提示Could not update files on device: Connection closed before full header was received

1 问题

运行flutter app提示错误如下

Performing hot restart...
Syncing files to device MIX 3...
Could not update files on device: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:65054/-tzvW6oGieQ=/
Restarted application in 1,831ms.


2 解决办法

在flutter项目的终端,执行如下命令

flutter clean

然后把手机线拔了再插进去

上一篇:在Windows Mobile和Wince(Windows Embedded CE)下使用.NET Compact Framework 取当前运行文件的路径


下一篇:小程序开发如何为企业带来效益?