windows中android SDK manager安裝更新sdk很慢,或者出現Done loading packages后不動甚至沒有任何可用包


出現問題:

1.windows中android SDK manager安裝更新sdk很慢,或者出現Done loading packages后不動甚至沒有任何可用包

2.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

 

解決辦法:

打開C:\WINDOWS\system32\drivers\etc\hosts

添加如下配置:

#Google
203.208.46.146 www.google.com
74.125.113.121 developer.android.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM