错误完成:无法与Chrome中的应用程序实例建立连接 [英] Finished with error: Failed to establish connection with the application instance in Chrome

查看:580
本文介绍了错误完成:无法与Chrome中的应用程序实例建立连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完成,但出现错误:无法与 Chrome中的应用程序实例.如果网络套接字可能会发生这种情况 Web工具使用的连接无法正确建立 连接,例如由于防火墙.

Finished with error: Failed to establish connection with the application instance in Chrome. This can happen if the websocket connection used by the web tooling is unabled to correctly establish a connection, for example due to a firewall.

当我在chrome浏览器上运行Flutter Web应用程序时,出现此错误.即使没有解决我的问题,我也关闭了防火墙.

I am getting this error, when i run my flutter web application on chrome browser. I also turn off my firewall even that didnot solve my problem.

解决此错误的可能解决方案是什么?

What will be the possible solution for resolving this eror?

我尝试过的临时解决方案:
从开发者频道升级到主频道时,我遇到了这个问题. 我要解决的问题是,清理项目的构建缓存(干净清理),然后使用发布模式运行项目. 之后,我可以在调试模式下运行它.

Temporary Solution that i had tried:
I had this issue when upgrading from dev channel to master channel. what i did to solve this problem is, clean my project's build cache (flutter clean), then run the project using release mode. After that, i can run it on debug mode.

这暂时解决了我的问题,一段时间后,我仍然面临同样的问题.实施相同的解决方案并不能解决我的问题.

This solved my problem temporarily and after some time i still facing the same issue. And implementing the same solution didnot solve my problem.

推荐答案

flutter run -d chrome-发布

flutter run -d chrome --release

以发布模式运行是解决此问题的方法

running in release mode is the solution to this problem

这篇关于错误完成:无法与Chrome中的应用程序实例建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆