用android模拟器,调试app,app无法访问网络。

报下面的错误 

E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument

E/netmgr: WifiForwarder unable to open QEMU pipe: Invalid argument

E/memtrack: Couldn't load memtrack module

 

可能需要mac网络DNS配置

 

可能需要设置下面

This issue was occurring in Android 9.0 for me and I fixed it by adding android:usesCleartextTraffic="true" inside application tag.

<application
    ..
    android:usesCleartextTraffic="true"
    >
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐