最近玩ubuntu系统,以前windows下下载的SDK文件不能用了,只能重新下载,安装完Eclipse和ADT插件,却发现无法更新SDK,显示为:
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.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-6.xml


Eclipse输出错误
reason: Connection to https://dl-ssl.google.com refused

估计这又是伟大GFW的功劳,我们只需要配置一下hosts文件,在文件的末尾添加下面一句:
74.125.237.1 dl-ssl.google.com

windows系统中hosts文件的位置为:C:\Windows\System32\drivers\etc ,找到该文件并已文本形式打开,添加上面一句话,保存之后关闭,重启Eclipse打开Android SDK Manager,ok!

Ubuntu系统hosts文件的位置为:/etc/hosts,可以通过命令:
sudo gedit /etc/hosts对该文件进行编辑

更多相关文章

  1. 在Android中自动实现横竖屏切换的问题
  2. Linux 下使用 NDK 编译 protobuf 2.6.1
  3. Android(安卓)android.uid.shared MK编译或eclipse编译后签名
  4. android 模仿百度地图自定义对话框
  5. Android文件访问权限问题
  6. ant 一键打包
  7. android Immutable bitmap passed to Canvas constructor异常
  8. Android(安卓)studio 下的svn配置使用
  9. NPM 和webpack 的基础使用

随机推荐

  1. Android(安卓)进程管理概述
  2. Android(安卓)Design Library之四:BottomS
  3. Android播放音乐案例分享
  4. Notification探险
  5. 线程-进程间通信(操作系统、java、android
  6. android 通过jdbc访问mysql数据库--(含and
  7. 使用cocos compile -p android -m releas
  8. Android通知栏微技巧一些需要注意的小细
  9. Android(安卓)Studio debug调试
  10. contentprovider的学习实例总结