解决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:\WINDOWS\system32\drivers\etc目录下,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>
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步