简体   繁体   English

如何修复我的 flutter 应用程序与我的华为的连接?

[英]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

  • Any idea of how to fix it?知道如何解决吗?

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.

相关问题 我无法在我的设备上运行我的 Flutter 应用程序 Huawei P10 Lite - I can't run my flutter app on my device Huawei P10 Lite 如何修复损坏的应用程序? - How can I fix my corrupt app? 如何从华为 AppGallery Connect 下载我的应用分析? - How can I download my app's analytics from Huawei AppGallery Connect? 我的 flutter 应用程序中出现此错误,您能告诉我如何解决吗? - I have this error in my flutter app, can you tell how to fix it? 如果不是华为原装传感器,如何访问华为手表 2 的心率传感器? - How can I access the heart rate sensor of my Huawei Watch 2 if it is not an original Huawei Sensor? 我怎么能把这个配置放在我的华为手机上? - how can i put this configuration on my huawei cellphone? 如何使我的App在Huawei设备上受保护 - How to make my App Protected on Huawei devices 我在哪里编码华为在 android studio 上的应用内购买以及我如何将我的应用与 IAP 链接 - where i code Huawei In-app purchase on android studio and how i link my app with IAP 如何在我的 Flutter 应用程序中添加启动画面? - How can I add splash screen I my flutter app? Flutter:如何从华为设置应用程序中提取特定值? - Flutter: How can i extract a specific value out of the Huawei Settings App?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM