如何升級android的sdk

國內很多google網站上不去,你在升級android的sdk時候,總有些失敗提示。我在看了網上文檔後,也嘗試在AVD SDK的settings添加了代理服務器,結果提示:
----------------------------------------------------------------
添加代理服務器方法:
在安裝的頁面中,修改代理配置:
1.Settings裏Http Proxy Server:10.159.192.62,Http Proxy Port:8080
2.選擇如下兩個選項卡:Force https//.....using http...,還有一個:Ask Before restaring ADB
 
提示:
----------------------------------------------------------------
 
我繼續搜索,發現了這樣一種說法:
----------------------------------------------------------------
可以強制指向下Host ,以下是添加內容:
74.125.237.1 dl-ssl.google.com 
具體操作方式:
點擊桌面左下角開始菜單中的搜索,把以下路徑,複製到搜索窗口中,c:\windows\system32\drivers\etc,點擊立即搜索 ,就找到host文件,其實是一個純文本的文件,
1、用記事本打開
2、將:74.125.237.1 dl-ssl.google.com  添加至最後一行
3、保存關閉Host
----------------------------------------------------------------
 
我嘗試了這種方法,發現OK了,可以連接,取回結果。下面我再引用一篇文檔,來記錄所有谷歌的地址,以便以後修改方便。
 
————————————————————————————————————
209.85.225.101 docs.google.com
74.125.127.100 writely.google.com
74.125.127.139 spreadsheets.google.com
保存hosts,重啓瀏覽器後,https方式的Google Docs就能正常訪問了。
萬一Gmail也遭遇到Google Docs的情況怎麼辦?用同樣的方法,在hosts文件里加入Gmail的IP即可,爲方便使用,我將提供有https方式的Google服務及其的IP列表如下:
209.85.147.109 pop.gmail.com
209.85.147.109 smtp.gmail.com
66.102.7.19 mail.google.com
209.85.225.101 docs.google.com
209.85.225.102 groups.google.com
74.125.127.139 spreadsheets.google.com
74.125.127.100 services.google.com
74.125.127.100 writely.google.com
74.125.127.100 sites.google.com
209.85.225.104 reader.google.com
74.125.127.101 calendar.google.com

 

解決Gmail及Google無法訪問的問題
Google的服務一直很好,可惜被屏蔽了,這裏總結了一下如何不借助工具直接訪問Gmail和Google的搜索服務,方法獲取自網絡,有本人總結一下
windows用戶打開系統所在盤符(一般爲C盤),然後依次打開Windows—system32—drivers—etc,然後用記事本打開hosts文件,把下面的代碼加入到這個文件中,然後保存就可以了
203.208.39.22 webcache.googleusercontent.com
203.208.39.22 mail.google.com
203.208.39.22 www.google.com.hk
203.208.39.22 www.google.com
這樣,你就可以順暢的使用Google,Gmail了,但是請按照法律辦事!
注:保存hosts時可能出現無法保存的問題,請將文件的屬性去掉只讀即可.

 

2011-9-20 更新:

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

----------------------

收藏  http://just-ping.com 

Hosts裏的最新IP地址去哪裏找?

是的,這是一個問題,爲什麼有人就能搞到直接有效的ip地址呢?他們是如何找到的?好吧,我介紹在線網站給大家吧,大家切記收藏http://just-ping.com它可以在全世界裏ping我們所訪問的域名。過這個網站,可以很容易找到其他網站的真實IP,再用上面的方法改hosts.在使用過這個網站,可以很容易找到其他網站的真實IP.

使用這個站查詢到Gmail的真實IP, Yesure很快很順利的打開了自己的Gmail.目前http://just-ping.com還不支持加密連接,很可能在使用的過程中也會被重置。當然對於一些相對來說合法的站來說,應該問題是不大的。當然IP被封的話此方法是無效的,也並不是所有上面顯示的IP是可用的,這個得試.記得改完Hosts記得刷新下你的DNS,運行ipconfig /flushdns命令清除本機DNS緩存。最好再重啓下瀏覽器。

——————————————————————————————————————————————

感謝前人的努力。上面文檔的源地址:http://hi.baidu.com/biovirus/item/855284eb16ea990c64db004a





轉至:http://blog.chinaunix.net/uid-652472-id-3289272.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章