安卓模拟器无法上网 [英] Android emulator not able to access the internet

查看:39
本文介绍了安卓模拟器无法上网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道以前也有人问过类似的问题,但我的问题是在安装了2017年3月最新版本的Android Studio 2.3之后才出现的.我有几年的Android应用程序开发经验,以前从未遇到过这个问题.升级到 Android Studio 2.3 版本后,我的模拟器无法再访问 Internet.我什至从头开始卸载/重新安装 Android Studio 2.3 并创建了一个新的模拟器,但我仍然遇到相同的错误.这不是应用程序问题.我什至无法从 Chrome 访问互联网,上周我没有遇到这个问题.我收到的消息说找不到服务器 DNS 地址——DNS_PROBE_FINISHED_BAD_CONFIG.上周我的电脑唯一改变的是新版本的 Android 以及可能更新到 Windows 10.是的,我的电脑可以访问互联网.下面是我尝试使用 Chrome 搜索Google"时的模拟器图像.

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(Google 的 DNS)或您喜欢的其他地址:

MacOSX:
  • 打开系统偏好设置"
  • 点击网络"
  • 选择您的计算机连接的网络,然后点击高级"
  • 选择DNS",选择+"按钮,输入8.8.8.8";(Google 的 DNS)或者如果您更喜欢 OpenDNS,208.67.222.222"
  • 选择确定"和申请"
  • https://developers.google.com/speed/public-dns/文档/使用

    这篇关于安卓模拟器无法上网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆