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

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









作者:chen.yu
深信服三年半工作经验,目前就职游戏厂商,希望能和大家交流和学习,
微信公众号:编程入门到秃头 或扫描下面二维码
零基础入门进阶人工智能(链接)