首页 > 解决方案 > Android:RemoteConnection 初始化失败:RemoteConnection 无法打开管道

问题描述

最近,我在 Android 上的模拟器停止正常运行项目。接下来是:项目已构建,应用程序安装并运行,但永远不会离开初始空白/启动屏幕(也不会执行任何网络调用)。这个问题只发生在我的模拟器上,我可以在物理设备上运行,它就像一个魅力。

在AndroidStudio上分析LogCat,发现如下错误:

E/wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:wififorward' service: Invalid argument
E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
E/netmgr: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:network' service: Invalid argument
E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument

寻找qemud:network我发现了一些可能的解决方案,例如添加

<application
    android:usesCleartextTraffic="true" >

到 AndroidManifest.xml。更改后,它'pipe:qemud:network'似乎消失了,但'pipe:qemud:wififorward'仍然存在,我找不到任何修复方法。这现在在很多方面阻碍了我。

知道会发生什么吗?

标签: androidreact-nativenetworkingmobile

解决方案


这听起来可能很傻,但就我而言,当我遇到问题时,我对空白屏幕感到困惑,我只是关闭了模拟器手机。我按下了 ON 按钮,一切正常。


推荐阅读