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項目的終端,執(zhí)行如下命令

flutter clean

然后把手機線拔了再插進去









作者:chen.yu
深信服三年半工作經驗,目前就職游戲廠商,希望能和大家交流和學習,
微信公眾號:編程入門到禿頭 或掃描下面二維碼
零基礎入門進階人工智能(鏈接)