[英]How can i fix the connection of my flutter app to my huawei?
After connecting my huawei phone to my pc, I run the flutter app and I get this error in my console:将我的华为手机连接到我的电脑后,我运行 flutter 应用程序,我在控制台中收到此错误:
D/ZrHung.AppEyeUiProbe( 3508): Current Activity:false D/ZrHung.AppEyeUiProbe( 3508): not watching, wait.
D/ZrHung.AppEyeUiProbe(3508):当前活动:假 D/ZrHung.AppEyeUiProbe(3508):不看,等待。 E/ ( 3508): [ZeroHung]zrhung_get_config: Get config failed for wp[0x0008] W/libEGL ( 3508): EGLNativeWindowType 0x7639517010 disconnect failed D/ViewRootImplMainActivity: surface should not be released I/Choreographer( 3508): Skipped 275 frames.
E/(3508):[ZeroHung]zrhung_get_config:wp[0x0008] W/libEGL(3508)获取配置失败:EGLNativeWindowType 0x7639517010 断开连接失败 D/ViewRootImplMainActivity:不应释放表面 I/Choreographer(3508):跳过 275 帧。 The application may be doing too much work on its main thread: W/libEGL ( 3508): EGLNativeWindowType 0x764275f010 disconnect failed D/AwareBitmapCacher( 3508): handleInit switch not opened pid=3508
应用程序可能在其主线程上做太多工作:W/libEGL(3508):EGLNativeWindowType 0x764275f010 断开连接失败 D/AwareBitmapCacher(3508):handleInit 开关未打开 pid=3508
the flutter app on my phone shows this error:我手机上的 flutter 应用程序显示此错误:
Something wrong with message:SocketException:OS Error: Connection refused,errno=111,address=localhost,port=53492
消息有问题:SocketException:OS Error: Connection denied,errno=111,address=localhost,port=53492
Looks like you're trying to send a request to localhost
and it fails, because localhost
on your phone refers to your phone.看起来您正在尝试向
localhost
发送请求但它失败了,因为您手机上的localhost
指的是您的手机。 Change address to 10.0.2.2
to refer to your development machine.将地址更改为
10.0.2.2
以引用您的开发机器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.