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

来源:互联网 发布:淘宝漏洞单是真的吗 编辑:程序博客网 时间:2024/05/17 21:52

在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.勾选图中的选项,即可更新


0 0
原创粉丝点击