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


当前回答

“移动数据”设置需要打开。冷启动不起作用,但在我打开移动数据后它起作用了吗

其他回答

冷启动选项适合我

我使用的是android studio 3.1,它就发生了。 通过重新启动adb服务器解决了这个问题

$ adb kill-server
$ adb start-server

希望能有所帮助。谢谢你!

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

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

然后进入SDK路径

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

它解决了你的网络问题…

我也有这个,我通过创建新的android模拟器虚拟设备解决了这个问题,并选择了Nexus 4 api 27。在我创建Pixel设备api 28之前,即使在重新创建设备后,它也无法工作。所以我尝试了完全不同的配置和Android模拟器有互联网连接的预期。其他的解决方案对我来说都不奏效,但我并没有尝试所有的方法。