Android SDK Manager无法自动更新

二种情况我都遇到了。

1)来自http://blog.youkuaiyun.com/wawxf2008/article/details/8054943

Eclipse输出错误reason: Connection to https://dl-ssl.google.com refused
估计这又是伟大GFW的功劳,我们只需要配置一下hosts文件,在文件的末尾添加下面一句:
74.125.237.1 dl-ssl.google.com


windows系统中hosts文件的位置为:C:\Windows\System32\drivers\etc ,找到该文件并已文本形式打开,添加上面一句话,保存之后关闭,重启Eclipse打开Android SDK Manager,ok!

把如下的内容复制保存为hosts,然后替换掉 C:\Windows\System32\drivers\etc\目录下的 hosts,就可以方便的使用google.com啦

 

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

 

2)来自:

http://jingyan.baidu.com/article/fd8044fa834e905031137ac6.html

因为在开始->运行->cmd 中敲入 ping dl-ssl.google.com -t 始终ping不通

,关闭cmd后

首先需要下载一个代理服务器

打开此软件,在内容选项中 看到生成的代理地址,记住ip地址127.0.0.1 和端口号8580

之后打开android sdk manager.exe  打开tools里的options

在弹出的对话框中,把刚才的ip地址输入到 http proxy server中,把端口输入到 http proxy port 中,选中 force https://...

关闭对话框

重新打开android sdk manager.exe 会迅速出现更新列表,选中需要更新的包后,点击install package 即可更新了。

更新不要使用eclipse,否则eclipse会锁定android-sdk-windows文件夹,应该找到android SDK manager.exe所在目录后,直接运行。

经验内容仅供参考,如果您需要解决具体问题(尤其在法律、医学等领域),建议您详细咨询相关领域专业人士。
内容概要:本文详细介绍了在Linux环境下进行C++开发所需掌握的内容,以一个Web多人聊天项目为例,涵盖从开发环境搭建到项目部署的全过程。首先推荐了一个项目地址,该项目支持HTTP请求、Websocket、多房间和多人聊天、MySQL用户信息存储、Redis缓存、json序列化等功能,并建议扩展功能如基于Reactor模型构建HTTP/Websocket服务、仿写MySQL/Redis连接池等。接着介绍了开发环境,包括Ubuntu 20.04、MySQL 8.0、Redis 6.0、gcc/g++ 10.5.0等,并提供了详细的部署步骤,如安装boost库、编译聊天室服务、配置MySQL和Redis等。最后分析了项目架构,包括数据存储(MySQL存储用户信息,Redis存储房间消息和用户cookie)、消息格式(HTTP请求消息和Websocket交互消息)、HTTP/Websocket数据处理流程等。; 适合人群:有一定Linux基础,想深入了解C++开发及网络编程的开发者,尤其是有志于从事Web开发或服务器端开发的技术人员。; 使用场景及目标:①掌握Linux C++开发环境的搭建,包括工具链的安装与配置;②理解并实践HTTP、Websocket等网络协议的应用;③熟悉MySQL、Redis等数据库的使用;④学习如何处理HTTP请求、Websocket交互消息及数据存储;⑤能够独立完成类似Web聊天室的项目开发。; 其他说明:本文不仅提供了理论指导,还给出了具体的实践操作步骤,如编译过程中可能遇到的问题及解决方案。对于初学者来说,可以按照文中提供的链接和教程逐步学习,同时鼓励读者根据自身需求对项目进行扩展和优化。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值