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


当前回答

在我的情况下,它是查尔斯代理应用程序。即使关闭应用程序,模拟器仍然不能访问互联网。需要停止监听查尔斯的网络。

其他回答

去你的适配器设置,将DNS更改为8.8.8.8,也就是谷歌,它会工作,它对我来说很有效

android浏览器是否可以访问Internet 你可以从终端运行模拟器 通过此命令

然后进入SDK路径

$ /工具/ avd模拟器 下一个是5x_api_23 -netdelay no -netspeed full

它解决了你的网络问题…

我观察到的是,当你切换wifi连接时,android模拟器正在运行。它无法连接到新的wifi。

一个简单的解决方案是重新启动android模拟器。

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

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

对我来说,在OSX上,这是因为使用第三方VPN解决方案…它安装了一些avd和Genymotion无法通过的网络钩子。必须卸载它才能正常工作。在某些网络上工作得很好,而在其他网络上则不行……很奇怪…