zoukankan      html  css  js  c++  java
  • 解决android SDK升级慢的问题

    1、通过Android SDK Tools/SDK Manager.exe打开Android SDK Manager
    2、在SDK Manager窗口中,Tools-->Options...-->打开Settings
              1) 在Others下选中Force https://...sources to be fetched using http://...(原来默认使用https,现在强制使用http)

    3、打开hosts文件:Windows在C:WINDOWSsystem32driversetc目录下,Linux用户打开/etc/hosts文件
    在文件末尾默认添加星号行内代码:
    ****************************************
    #Google主页
    203.208.46.146 www.google.com
    #这行是为了方便打开Android开发官网
    74.125.113.121 developer.android.com
    #更新的内容从以下地址下载
    203.208.46.146 dl.google.com
    203.208.46.146 dl-ssl.google.com
    ****************************************

    通过SDK Manager进行更新时,如果提示如下错误,请检查是否设置Force https://...sources to be fetched using http://...:

    Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.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: hostname in certificate didn't match: <dl-ssl.google.com> != <www.google.com>
  • 相关阅读:
    小数据池,深浅拷贝以及集合
    字典
    列表,元组以及range
    整型,布尔值以及字符串详解
    while循环,格式化输出,运算符及编码初识
    Python简介以及入门
    码云以及Git的使用
    JaveScript——简介、语法
    网页练习
    HTML_css样式表 样式属性 格式布局
  • 原文地址:https://www.cnblogs.com/androidstudy/p/3393394.html
Copyright © 2011-2022 走看看