出现Failed to fetch URL错误提示

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: hostname in certificate didn't match: != 更新ADT时无法解析https://dl-ssl.google.com/android/eclipse

解决办法

打开C:\Windows\System32\drivers\etc文件夹,将hosts文件复制到桌面,用文本编辑软件(如Subline Text2)打开hosts文件。增加一行:74.125.237.1 dl-ssl.google.coms

更多相关文章

  1. android 自定义View 在布局文件中写法
  2. Android上传下载文件(图片)
  3. android 录像/打开video文件
  4. (原)Eclipse的java中文件读写
  5. Android File文件操作
  6. Android Button Maker(在线生成android shape xml文件的工具),真方

随机推荐

  1. Android(安卓)使用URL通过浏览器调用andr
  2. android高手系列
  3. Android(安卓)studio2.3.3升级3.1.2坑
  4. android studio 已过时
  5. Android(安卓)各种自定义进度条Progressb
  6. Android读取Txt文件
  7. Android软件更新
  8. Android(安卓)Studio 错误 Duplicate fil
  9. android中读取联系人和通话记录
  10. Android应用程序启动过程源代码分析(4)