Android在win7更新SDK时出现问题:

Download interrupted: hostname in certificate didn't match: <dl-ssl.google.com> != <www.google.com>;

Failed to fetch URLhttps://dl-ssl.google.com/XXXXXX


解决办法:

1、更新ADT插件的时候则使用网址http://dl-ssl.google.com/android/eclipse,而不是https://dl- ssl.google.com/android/eclipse,这个在官方开发文档里也有介绍

即选择SDK的tools->options,然后勾选Force https ......。



如果还有错,可以在文件(C:\Windows\System32\drivers\etc\hosts)中,添加如下几行:
203.208.46.146 www.google.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

注意:hosts文件可能是只读和隐藏的。

更多相关文章

  1. NPM 和webpack 的基础使用
  2. 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
  3. android init 进程分析
  4. 管道的私用,删除android的流氓
  5. android 获取服务器文件流 hander
  6. Android(安卓)studio 使用Google 的AdMob
  7. Android定制出厂默认输入法
  8. Android学习笔记之mainfest文件中android属性
  9. android资料下载地址汇总

随机推荐

  1. Android(安卓)中压力测试工具Monkey的用
  2. Android开发指南(34) —— Multimedia an
  3. Android存储空间讲解
  4. 获取android API key
  5. android 的ListView中,如何判断其内容已滚
  6. TextView实现跑马灯的效果
  7. android 源代码定制--- 状态栏
  8. 仿IOS透明通知栏(仅支持4.4以上版本)
  9. Android Studio下使用JAVA+Appium进行自
  10. Android webkit keyevent 事件传递过程