现在的位置: 首页 > 综合 > 正文

AndroidStudio,Eclipse无法更新sdk的方法,简单设置即可.

2018年03月31日 ⁄ 综合 ⁄ 共 870字 ⁄ 字号 评论关闭

在AndroidStudio与Eclipse中,需要更新SDK的时候,老是会失败.会提示

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
Done loading packages.
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: hostname in certificate didn't match: <dl-ssl.google.com> != <www.google.com> OR <www.google.com>
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-10.xml, reason: SSL hostname in certificate didn't match: <dl-ssl.google.com> != <www.google.com> OR <www.google.com>
Done loading packages.

等等。。

其实只要这样设置一下就可以正常更新SDK,把Https换成Http即可;

1.打开SDK Manager 


2.选择Tools 选择Options

3.勾选图中的选项,即可更新


抱歉!评论已关闭.