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".


当前回答

macOS:长话短说…确保你的DNS设置8.8.8.8是第一个,擦除你的数据并进行冷启动。

其他回答

苹果MacBook M1

在m1 mac上,没有一个答案对我有效,我甚至无法连接到本地服务器的本地主机。

对我来说,诀窍是关掉手机数据“T-mobile”,然后它就会使用安卓wifi上网,一切都很好。

这是我工作设置的截图:

我有visual studio 2017,这简单的几次点击已经修复了Android模拟器的互联网问题。

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

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

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

单击更改适配器选项->

右键单击已连接的网络。

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

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

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

对我来说,我在模拟器中打开连接设置,断开了Android WiFi。然后在这个里面,我按了忘记连接。现在再次连接到相同的WiFi解决了这个问题。我认为这是解决问题的最快方法!

经过10天的麻烦,我刚刚删除了C:\Android\中的所有内容。并且删除了所有创建的avd。现在互联网似乎工作得很好。