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


当前回答

对我来说,问题是我的电脑连接了VPN。一旦我断开连接,它开始在模拟器中工作。

其他回答

有同样的问题与我的模拟器,做了上面的一切,但没有工作。 更改我的默认网关 控制面板->网络和共享中心->本地连接设置: 192.168.1.119到192.168.1.1在我这里工作。 我不知道这个IP地址是如何工作的,但也许它会节省一些人的时间和挫折。

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

适用于苹果MacBook M1用户

自2022年2月1日起生效

Android模拟器 转到扩展控制。 然后进入代理(Tab)下的设置, 使用Android studio HTTP代理设置 单击Apply 重新启动/冷启动模拟器。

这将修复模拟器上的互联网连接问题。

一套无代理

2-invalidate缓存

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

在过去的8个小时里,我一直在想办法解决这个问题。事情发生在我家停电之后。我的模拟器将不再连接到我的电脑的互联网。我试了所有的解。将DNS更改为8.8.8.8有效,但我不想将所有流量路由到谷歌。

最终奏效的是。我知道这很疯狂,但是拔掉我的wifi路由器/调制解调器。一个快速拔插修复了这个问题。在这个SO问题和其他5个问题上,我用尽了一切办法。我甚至重新下载了Android Studio和模拟器。这些都没用。试着拔掉你的路由器/调制解调器。