Android模拟器无法访问互联网 [英] Android emulator not able to access the internet

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

问题描述

我知道之前也曾问过类似的问题,但是我的问题只有在安装了Android Studio 2.3(2017年3月的最新版本)之后才是新问题.我有几年开发Android应用程序的经验,并且从未遇到过此问题.升级到Android Studio 2.3版后,我的模拟器不再能够访问Internet.我什至从头开始卸载/重新安装了Android Studio 2.3,并创建了一个新的模拟器,但仍然出现相同的错误.这不是应用程序问题.我什至无法从Chrome访问互联网,上周我也没有遇到这个问题.我收到的消息说找不到服务器DNS地址-DNS_PROBE_FINISHED_BAD_CONFIG.上周我的计算机上唯一发生变化的是Android的新版本以及Windows 10的更新.是的,我的计算机可以访问Internet.下面是当我尝试使用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"
  • 选择确定",然后单击确定".和应用"
  • Change the DNS address of your network to 8.8.8.8 (Google's DNS) or another of your preference:

    MacOSX:
    • Open "System Preferences"
    • Click on "Network"
    • Select the network which your computer is connected and click on "Advanced"
    • Select "DNS", Select the "+" button, type "8.8.8.8" (Google's DNS) or if you prefer OpenDNS, "208.67.222.222"
    • Select "Ok" and "Apply"
    • https://developers.google.com/speed/public-dns/docs/using

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

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