最近玩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!

如果还不行的话,试试下面应该就可以了

已有IDE,自动更新自动更新Android SDK时出现以下错误:

Download interrupted: Connection to https://dl-ssl.google.com refused

网上很多的解决办法是,修改host文件。其实只需要将https协议强制改为http就可以了:

步骤一:打开Android SDK Manager,Tools,Option。

Android SDK Manager无法更新的解决_第1张图片

步骤二:选中 Others , Force https:// sources to be fatched using http://

Android SDK Manager无法更新的解决_第2张图片

源地址:http://blog.csdn.net/lizhibin3944/article/details/10942463

更多相关文章

  1. Android在SDcard建文件夹(在Android中移动文件必用)
  2. Linux系统下安装android sdk的方法步骤
  3. 使用AndroidStudio编译NDK的方法及错误解决方式
  4. Android Studio 配置快捷方式生成JNI头文件的方法
  5. android 安装文件例子
  6. android 读取DDMS里的文件时打不开,解决方法
  7. android配置文件详解
  8. 简单的Android日志文件记录类
  9. Android上传文件,客户端+服务器源码

随机推荐

  1. android内置的一些测试程序
  2. Android(安卓)获取 AudioRecord 麦克风音
  3. android x86 手动安装arm兼容库
  4. android资源文件中xliffg:g的用法
  5. Android(安卓)第十三课——ListView List
  6. Android(安卓)中的单元测试
  7. Android的Activity屏幕切换动画
  8. 在Linux下adb连接不上android手机的终极
  9. Android4.0中蓝牙适配器state machine(状
  10. android 键盘 send按钮