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,

     

  • 相关阅读:
    内置函数——filter和map
    递归函数
    内置函数和匿名函数
    迭代器和生成器
    装饰器函数
    函数进阶
    COGS 2533. [HZOI 2016]小鱼之美
    COGS 2532. [HZOI 2016]树之美 树形dp
    COGS2531. [HZOI 2016]函数的美 打表+欧拉函数
    bzoj1303: [CQOI2009]中位数图
  • 原文地址:https://www.cnblogs.com/lovemo1314/p/4632515.html
Copyright © 2011-2022 走看看