用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

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐