最新摆弄PhoneGap打包,所以需要安卓的环境,配置后,sdk更新实在是在慢了,上网找了一下,可能被强了,所有总结如下办法,最后弄好了,跟大家分享一下
具体步骤:
1:打开SDK Manager.exe
2:选择Tools-Optins,将【Force https:// ...】打勾
3:最后更新下自己的HOSTS文件,Host文件位置,以win7 64位系统为例:C:\Windows\System32\drivers\etc
可在HOSTS文件加入如下内容,以后访问谷歌等网站方便一些
- 127.0.0.1 localhost
- #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
最后,在win7中,你修改后可能告诉你管理权限不够,没关系,将Hosts文件复制到其他地方修改,最后在覆盖它,就大功告成了