安装完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

最大可能就是我们身在长城之内,伟大的天朝啊。解决办法:

输入命令:sudo gedit /etc/hosts/

在文件最后添加以下信息:

74.125.237.1 dl-ssl.google.com

保存,重启eclipse就OK了

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

更多相关文章

  1. eclipse ADT在线安装 https://dl-ssl.google.com/android/eclips
  2. mono for android 获取手机照片或拍照并裁剪保存
  3. android button 上添加图片
  4. and 使用以及添加一个自己的mime type在ContactsContract
  5. Android之使用ContentResolver对通信录中的数据进行简单操作
  6. android4.0创建AVD后,打开虚拟机黑屏问题解决
  7. Android之从Browser中打开本地的应用程序&微信检测是否有对应app
  8. android 打开各种文件(setDataAndType)
  9. android listview 设置点击效果selector

随机推荐

  1. Android实现在webview中长按图片弹出菜单
  2. Android(安卓)Studio如何添加工程(project
  3. Android中关于startActivityForResult()
  4. Android Studio 连接夜神模拟器
  5. Android Ap 开发 设计模式第二篇:适配器模
  6. 小记Activity生命周期(onCreate)
  7. unity和Android之间互相调用
  8. Android Service---在清单中声明一个服务
  9. Unity3D导出为android程序invokation fai
  10. android编辑单个工程