Android SDK下载和更新失败的解决方法!!!
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml.
据说dl-ssl.google.com在大陆被强了,伟大的天朝真是不让人活了,解决方法就是修改C:\Windows\System32\drivers\etc\hosts文件。添加一行:74.125.237.1 dl-ssl.google.com 这里需要注意的是hosts文件是只读的,我们没有权限修改,需要我们将hosts文件复制到桌面或者其他地方,然后修改,代码如下:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
//亲,就是增加这一句哦
74.125.237.1 dl-ssl.google.com
然后保存,复制修改后的hosts文件到C:\Windows\System32\drivers\etc 目录,替换文件就好!!!我们再次下载SDK的时候就会成功啦
嘿嘿,大功告成啦!!!
PS:补充下,在mac或Linux中,hosts文件所在位置为/etc/hosts,可以使用sudo vim /etc/hosts来编辑。
详细内容请看:http://blog.csdn.net/android_tutor/article/details/7425021
最新文章
- linux基础:第三关课前考试题整理
- Hibernate组件和关联映射
- Oracle【IT实验室】数据库备份与恢复之三:OS备份/用户管理的备份与恢复
- Linux课本第一二章
- 山东省第四届ACM大学生程序设计竞赛解题报告(部分)
- 基于注解的EF
- 使用Socket通信实现Silverlight客户端实时数据的获取(模拟GPS数据,地图实时位置)
- iOS Storyboard适配问题
- linux执行sh报错:$’\r’: 未找到命令的解决
- IPC- Posix与system v
- Code4 APP
- 大数据 -->; 安装Hadoop-单机模式(1)
- PornHub 正式发布 AI自动标注色情演员引擎
- Eclipse 00: 常用快捷键
- 20190409Liunx中计划任务及压缩归档week2_day1
- Extjs的grid的单元格中加载超链接和按钮
- Interceptor的基本介绍和使用
- 水题B
- python 读csv格式的文件
- Linux命令之rz命令与sz命令
热门文章
- asp.net总结(一)
- [转] PostgreSQL的时间/日期函数使用
- HTML学习(1)
- js和php判断当前是否为微信浏览器?
- .net中Web.config文件的基本原理及相关设置
- JSP学习笔记(1)
- MFC 全局配置 读取保存配置
- QT5-控件-QLineEdit-文本输入控件,用来输入密码什么的还不错,可以和Linux登录一样不移动光标哦
- Bash shell 笔记总结(一) 转自http://www.bubuko.com/infodetail-509992.html,谢谢原作者
- jquery中的replaceWith()和html()有什么区别?