解决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>
原文地址:https://www.cnblogs.com/androidstudy/p/3393394.html