简体   繁体   English

Flutter - 未处理的异常:SocketException:

[英]Flutter - Unhandled Exception: SocketException:

I am facing below error while accessing the web services in android app.我在访问 android 应用程序中的网络服务时遇到以下错误。 But its working fine in iOS app.Pl help us to resolve this issue但它在 iOS app.Pl 中工作正常,帮助我们解决这个问题

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 47992 [错误:flutter/lib/ui/ui_dart_state.cc(148)] 未处理的异常:SocketException:操作系统错误:连接被拒绝,errno = 111,地址 = localhost,端口 = 47992

Also I have faced the same problem.我也遇到了同样的问题。 The way I have solved my problem is,我解决问题的方法是,

I made sure that there is no error in my code.我确保我的代码中没有错误。 Then I uninstalled my app, after that I restarted my phone and install the app again.然后我卸载了我的应用程序,之后我重新启动了我的手机并再次安装了该应用程序。 Then it start working.然后它开始工作。

I hope this will help..我希望这个能帮上忙..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM