I know that similar questions have been asked before, but my problem is new only after installing Android Studio 2.3, the latest version in March 2017. I have several years experience developing Android applications, and I have never encountered this problem before. After upgrading to version 2.3 of Android Studio, my emulator is no longer able to access the internet. I even uninstalled/reinstalled Android Studio 2.3 from scratch and created a new emulator, and I am still getting the same error. This is not an app problem. I can't even access the internet from Chrome, and I wasn't having this problem last week. The message that I get says that the server DNS address could not be found -- DNS_PROBE_FINISHED_BAD_CONFIG. The only thing that has changed on my computer in the last week is the new version of Android plus possibly updates to Windows 10. And yes, my computer has access to the internet. Below is an image of my emulator when I try to use Chrome to search for "Google".


当前回答

当我在从家里到咖啡馆的路上一直开着模拟器时,我就遇到了这个问题。“冷启动现在”修复了这个问题。

其他回答

只需要用另一个目标API重新创建模拟器就可以了

对于这个问题,我有一个简单而永久的解决方案。

进入网络和互联网选项->

点击以太网或wifi(你连接的)选项->

单击更改适配器选项->

右键单击已连接的网络。

将打开一个对话框,只需单击Internet协议版本(TCP/IPv4)选项。

弹出另一个对话框,忽略第一组IP地址(保持不变),单击“使用以下DNS服务器地址:”单选按钮,在“首选DNS服务器:”和“备选DNS服务器”中分别输入8.8.8.8和8.8.4.4:

现在你可以随时打开你的模拟器,你会得到互联网在安卓模拟器。

我在android模拟器V 7.1.1中遇到了同样的网络连接问题,然后我在我的android模拟器中将android版本降低到7.1.1以下,然后它的工作正常。

我在Windows 10上也遇到了同样的问题。我刚刚进入网络和互联网设置>更改适配器选项>右键单击Wi-Fi并选择属性>在列表中选择internet协议版本4并单击属性>打开“使用以下DNS服务器地址”并填写第一部分“8.8.8.8”地址。 问题解决了!

一套无代理

2-invalidate缓存

3 .删除旧的模拟器并添加新的