在進行安卓開發環境安裝的時候,經常出現以下問題:
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused
有些資料上說的解決方案如下:
用notepad打開C:/WINDOWS/system32/drivers/etc中的hosts文件
在最後一行添加74.125.237.1 dl-ssl.google.com
有些可以成功解決問題。
如果仍然鏈接失敗,就打開SDK Manager.exe,選中tool欄,點Android SDK Manager ,在下面Force https://...sources to be fetched using http://... 打上勾就行了,這個主要是把受保護的協議 https 轉成普通http
說明:如果修改hosts文件,無法保存,提示 權限不足,請修改當前電腦的用戶爲管理員,提高操作權限即可。