在配置好android开发环境后,打开Android SDK Manager想下载不同版本的sdk,发现无法获取到相关数据,提示如下:


Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-8.xml
解决方法:配置一下hosts文件则可,在文件末尾添加:
74.125.237.1 dl-ssl.google.com

之后重启Eclipse,再次打开Android SDK Manager则可。

至于host文件的位置在不同系统分别如下:

1、windows系统中,位置为:C:\Windows\System32\drivers\etc文件夹中

2、Linux用户打开/etc/hosts文件;

3、Mac用户在finder中“Go to Folder...”填入“/etc/hosts”;

其他解决参考:

1、http://blog.csdn.net/gaojinshan/article/details/9871607

203.208.46.146 www.google.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

更多相关文章

  1. NPM 和webpack 的基础使用
  2. 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
  3. android自定义dialog
  4. Android中调用startActivity结果导致:java.lang.RuntimeException
  5. "Failed to fetch URL https://dl-ssl.google.com/android/repos
  6. android编码问题
  7. Android(安卓)Studio:正确引入so文件的方法
  8. Android(安卓)扫描SDCard上的音乐文件以及监听扫描事件
  9. Android使用TextView,设置onClick属性无效解决办法

随机推荐

  1. AutoCompleteTextView的基本使用
  2. Android作为客户端,采用Netty与服务器通信
  3. 近百android开源项目贡献
  4. Android开发录音和播放音频的步骤(动态获
  5. android 问题归纳
  6. EditText 键盘收回
  7. error: resource android:attr/dialogCor
  8. android布局
  9. Ubuntu 64位编译 android 4.0源码
  10. textView自动滑动