Android SDK Manager解決更新時的問題 :Failed to fetch URL...
Failed to fectch URl https://dl-ssl.google.com/android/repository/addons_list.xml, reason: Connection to https://dl-ssl.google.com refused
安裝使用SDK Manager更新時出現(xiàn)問題 Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: hostname in certificate didn‘t match: <dl-ssl.google.com> != < www.google.com> 更新ADT時無法解析https://dl-ssl.google.com/android/eclipse
解決辦法
最好的方法還是改hosts文件的方法,更新速度較快。
Windows在C:\WINDOWS\system32\drivers\etc目錄下,Linux用戶打開/etc/hosts文件。 打開文件后添加以下內(nèi)容。
#Google主頁
203.208.46.146 www.google.com
#這行是為了方便打開Android開發(fā)官網(wǎng) 現(xiàn)在好像不翻也可以打開
74.125.113.121 developer.android.com
#更新的內(nèi)容從以下地址下載
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
添加以上的網(wǎng)址,再選用http協(xié)議,就可以正常的進行更新了。
選用http協(xié)議
打開SDK Manager.exe,選中tool欄,點Android SDK Manager ,在下面Force https://...sources to be fetched using http://... 打上勾就行了,這個主要是把受保護的協(xié)議 https 轉(zhuǎn)成普通http。
以上就是對 Android SDK Manager 更新問題的解決辦法,后續(xù)繼續(xù)補充相關(guān)資料,謝謝大家對本站的支持!
相關(guān)文章
Android 對手機網(wǎng)絡的檢測和監(jiān)聽的方法示例
本篇文章主要介紹了Android 對手機網(wǎng)絡的檢測和監(jiān)聽的方法示例,主要使用BroadcastReceiver廣播接收器來接收網(wǎng)絡狀態(tài),現(xiàn)在分享給大家,也給大家做個參考,有興趣的一起來了解一下2018-03-03
Android studio2.3.3升級到3.1.2坑(小記)
這篇文章主要介紹了Android studio2.3.3升級3.1.2坑(小記),小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2018-09-09
Android編程實現(xiàn)分頁加載ListView功能示例
這篇文章主要介紹了Android編程實現(xiàn)分頁加載ListView功能,結(jié)合實例形式分析了listview分頁加載的原理、實現(xiàn)技巧與相關(guān)注意事項,需要的朋友可以參考下2017-02-02

