SDK更新失败Failed to fectch URl https://dl-ssl.google.

当我们在更新SDK时,常常会遇到Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused这个问题SDK更新失败Failed to fectch URl https://dl-ssl.google._第1张图片

 SDK更新失败Failed to fectch URl https://dl-ssl.google._第2张图片

解决的办法是:

1.打开C:\WINDOWS\system32\drivers\etc中的hosts文件,

添加74.125.237.1 dl-ssl.google.com

203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

SDK更新失败Failed to fectch URl https://dl-ssl.google._第3张图片

2.在SDK Manager下Tools->Options打开了SDK Manager的Settings,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。

SDK更新失败Failed to fectch URl https://dl-ssl.google._第4张图片

 SDK更新失败Failed to fectch URl https://dl-ssl.google._第5张图片

你可能感兴趣的:(SDK更新失败Failed to fectch URl https://dl-ssl.google.)