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


当前回答

苹果MacBook M1

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

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

这是我工作设置的截图:

其他回答

我突然在我的MAC上遇到了同样的问题。在尝试了所有方法之后,我终于删除了/Users/Philippe/文件夹。并创建一个新的模拟器。

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

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

在8.8.8.8更新我的WIFI适配器以解析DNS为我解决了这个问题。这是在苹果的一次更新搞乱了DNS地址之后发生的。

我不知道这是否能帮助任何人,对我有用的是在模拟器的android设置上设置正确的(当前)日期和时间,看起来很奇怪。