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