android - 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'
仍然存在,我找不到任何修复方法。这现在在很多方面阻碍了我。
知道会发生什么吗?
解决方案
这听起来可能很傻,但就我而言,当我遇到问题时,我对空白屏幕感到困惑,我只是关闭了模拟器手机。我按下了 ON 按钮,一切正常。
推荐阅读
- javascript - Nodemon:忽略 src 内任何子目录中的文件名
- sql - 我可以将不在同一网络上的设备连接到我的 SQL Server 吗?
- android - 通过 Google Play 在不同国家/地区共享应用
- python - 执行链中的任务列表
- openstack - 如何增加开放堆栈管理程序本地磁盘的容量
- javascript - 更改连接到数据库的选择时自动填充条目
- scala - 探索 Akka Typed Actors 功能与面向对象的方式
- yq - 在 `yq` 写入命令中使用自引用
- python - Python os.rename() 多个文件导致除最后一个文件外的所有文件丢失
- python - 为什么我不能导入而不会收到有关另一个 python 文件的错误?(“部分初始化的模块没有属性”)