android sdk 无法更新问题

Android SDK Manager 一直不能更新,网上找了好长时间,现在终于找到了办法:

找原因:先测试一下 通不通: ping dl-ssl.google.com -t  始终ping不通

1.用户需要首先打开已下载的安卓SDK管理器“Android SDK Manager”,然后点击菜单栏中的“Tools”菜单选项,接下来只需选择“Options”选项即可打开设置窗体,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。

2.有的用户可以更新出列表来。如果还是不能,继续下面的操作。

在地址栏里输入:C:\WINDOWS\system32\drivers\etc,我们会看到hosts文件,右击打开方式选择记事本。在里面把下面文字复制进去,内容如下

#Google主页  
203.208.46.146 www.google.com  
#这行是为了方便打开Android开发官网 现在好像不翻墙也可以打开  
74.125.113.121 developer.android.com  
#更新的内容从以下地址下载  
203.208.46.146 dl.google.com  
203.208.46.146 dl-ssl.google.com  
3.有的用户接着就会看到加载出列表了。如果没有变化,重新打开SDK Manager。就会发现问题解决了。如图1

如果还是无法加载出列表,建议过几天再试试!

提示:更新ADT插件的时候则使用网址http://dl-ssl.google.com/android/eclipse 基本这个是用不了的!

网上找的一些HOSTS信息:

#Google Service  
#Chrome 网上应用  
203.208.46.146 chrome.google.com  
203.208.46.146 clients0.google.com  
203.208.46.146 clients1.google.com  
203.208.46.146 clients2.google.com  
203.208.46.146 clients3.google.com  
203.208.46.146 clients4.google.com  
203.208.46.146 www.googleusercontent.com  
203.208.46.146 lh0.googleusercontent.com  
203.208.46.146 lh1.googleusercontent.com  
203.208.46.146 lh2.googleusercontent.com  
203.208.46.146 lh3.googleusercontent.com  
203.208.46.146 lh4.googleusercontent.com  
203.208.46.146 lh5.googleusercontent.com  
203.208.46.146 lh6.googleusercontent.com  
203.208.46.146 clients1.googleusercontent.com  
203.208.46.146 clients2.googleusercontent.com  
  
#网页快照  
203.208.46.146 webcache.googleusercontent.com  
  
#Google SSL  
203.208.46.146 encrypted.google.com  
203.208.46.146 encrypted.google.com.hk  
  
#Google Docs  
203.208.46.146 docs.google.com  
203.208.46.146 docs0.google.com  
203.208.46.146 docs1.google.com  
203.208.46.146 docs2.google.com  
203.208.46.146 docs3.google.com  
203.208.46.146 spreadsheets.google.com  
203.208.46.146 spreadsheets0.google.com  
203.208.46.146 spreadsheets1.google.com  
203.208.46.146 spreadsheets2.google.com  
203.208.46.146 spreadsheets3.google.com  
  
#Gmail  
203.208.46.146 mail.google.com  
203.208.46.146 chatenabled.mail.google.com #Gmail中Gtalk聊天服务  
  
#Google 搜索  
203.208.46.146 www.google.com  
  
#Google preview  
203.208.46.146 www.googlepreview.com  
  
#Google 翻译  
203.208.46.146 translate.google.com  
203.208.46.146 translate.googleapis.com  
  
#Google 搜索建议(IE9)  
203.208.46.146 clients5.google.com  
  
#Google Code  
203.208.46.146 code.google.com  
  
#Picasa 网络相册  
203.208.46.146 picasaweb.google.com  
203.208.46.146 lh0.ggpht.com  
203.208.46.146 lh1.ggpht.com  
203.208.46.146 lh2.ggpht.com  
203.208.46.146 lh3.ggpht.com  
203.208.46.146 lh4.ggpht.com  
203.208.46.146 lh5.ggpht.com  
203.208.46.146 lh6.ggpht.com  
203.208.46.146 lh7.ggpht.com  
203.208.46.146 lh8.ggpht.com  
203.208.46.146 lh8.ggpht.com  
203.208.46.146 lh9.ggpht.com  
203.208.46.146 lh6.google.com  
  
#Google 个人资料  
203.208.46.146 profiles.google.com  
203.208.46.146 browsersync.google.com  
  
#Google+  
203.208.46.146 talkgadget.google.com #Google+中的聊天服务  
203.208.46.146 ssl.gstatic.com  
203.208.46.146 images-pos-opensocial.googleusercontent.com  
203.208.46.146 images1-focus-opensocial.googleusercontent.com  
203.208.46.146 images2-focus-opensocial.googleusercontent.com  
203.208.46.146 images3-focus-opensocial.googleusercontent.com  
203.208.46.146 images4-focus-opensocial.googleusercontent.com  
203.208.46.146 images5-focus-opensocial.googleusercontent.com  
203.208.46.146 images6-focus-opensocial.googleusercontent.com  
203.208.46.146 plus.google.com  
  
#Download 下载  
203.208.46.146 dl.google.com  
203.208.46.146 dl-ssl.google.com  
  
#Groups  
203.208.46.146 groups.google.com  
  
#Google URL Shortener  
203.208.46.146 goo.gl  
  
#Google App Engine  
203.208.46.146 appengine.google.com  
  
#Android Developer  
74.125.113.121 developer.android.com  



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值