zoukankan      html  css  js  c++  java
  • Android SDK更新 Connection to http://dl-ssl.google.com refused

    问题:

    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: <dl-ssl.google.com> != <www.google.com>

    方法:

    将https://修改为http://
    修改方法是:如下图,在Android SDK Manager->Tools-Options...选项界面,
    将“Force https://… sources to be fetched using http://…”勾选!

    可以在文件(C:WindowsSystem32driversetchosts)中,添加如下几行:
    203.208.46.146 www.google.com
    203.208.46.146 dl.google.com 
    203.208.46.146 dl-ssl.google.com

    这几个IP不一定管用,所以如果这样还不行,就需要自己去找一个能ping通的IP了。

    在这个网站上 http://tool.chinaz.com/ 选择超级ping,

     

  • 相关阅读:
    Angularjs 中文版API v1.3.9 阅读
    jquery之ajax
    requirejs中 shim
    reqiurejs学习
    angularjs与require的集成摘抄
    安装go-admin
    多种GitHub加速方式
    git初始化仓库操作
    git cherry-pick
    gc问题定位
  • 原文地址:https://www.cnblogs.com/lovemo1314/p/4632515.html
Copyright © 2011-2022 走看看