更新android sdk timeout 失敗

來源:互聯網
上載者:User

標籤:

之前更新sdk一直不成功,一直timeout,網路由1m的換成光纖都不行,然後百度,基本讓修改hosts檔案,但是那個ip地址根本沒效果,被坑慘了。此問題與源有關,要如下ping出來的ip才有效果。

linux下:

開啟終端 

 

ping dl-ssl.google.com

 

可以看到串連非常慢

 

改變地址

 

ping dl.google.com

 

看到IP地址為:203.208.48.129(這個地址會變動,請以實際ping出來為準)

 

下邊執行sudo gedit /etc/hosts

 

開啟hosts檔案

 

加入以下一行:203.208.48.129 dl-ssl.google.com

 

儲存即可生效。再次開啟android sdk看看效果吧。我的速度由原來的50k變到了5000k。。。

windows下:

運行-cmd再ping

windows的hosts在c\windows\system32\derivers\etc目錄下

也是在最後加上203.208.48.130(這個是我在windows下ping出來的) dl-ssl.google.com

更新android sdk timeout 失敗

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.