在使用代理的时候通过Andriod SDK Manager安装Andriod SDK时常遇到这样的错误:
*SDK manager Log* 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: Connection to https://dl-ssl.google.com refused 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: HttpHostConnect Connection to https://dl-ssl.google.com refused Done loading packages. 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: File not found Done loading packages. Fetching URL: http://dl-ssl.google.com/android/repository/repository-10.xml Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-10.xml, reason: File not found Done loading packages.
修改SDK Manager的网路代理就可解决。
步骤如下:
1. 打开SDK Manager
2. 菜单栏选择Tools->Options...
3.设置代理。