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

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

猜你喜欢

转载自blog.csdn.net/u011068702/article/details/108008075