当前位置:   article > 正文

Flutter Run出现Error connecting to the service protocol: HttpException: Connection closed before full_{httpexception} httpexception: connection closed b

{httpexception} httpexception: connection closed before full header was rece

Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:54153/ws

 

个人是Windows Android Studio

首先排查基本错误 :查看自己Studio 的 File => Settings | Languages & Frameworks => Flutter SDK Path是否对。

错误可能性1:下载的是别人的项目,而你们的flutter环境并不一样造成的,建议查看他当时的Flutter SDK 版本,将我们的替换成他的版本, 或者不知道他版本的话,请移步FlutterSDK官网https://flutter.io/sdk-archive/#windows直接下载Stable channel最新版 解压  打开目录 找到flutter_console.bat 打开 输入flutter doctor 看看有无错误 然后再去环境变量的Path中修改SDK目录  再将Studio的flutterSdk路径改成最新的 重启Studio即可

错误可能性2:可能设置了代理,需要修改代理

错误可能性3:地址链接自查 https://github.com/flutter/flutter/issues/6724

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/231887
推荐阅读
相关标签
  

闽ICP备14008679号