Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 983 Bytes

SDK Manager无法更新的问题.md

File metadata and controls

23 lines (16 loc) · 983 Bytes

SDK Manager无法更新的问题

由于伟大的防火墙,大陆访问Google服务会无法连接。不过作为程序猿,一般都会科学上网,所以这都不是事。今天这里说明一下普通情况下SDK Manager无法更新的问题.

  • 在更新的时候使用Http协议而不是Https协议,因为Https进行了加密处理,大陆无法审查,所以禁止了,而Http协议在过滤的时候发现不是一些禁止内容就没问题了。 在SDK ManagerTools->Options,选中Force https://… sources to be fetched using http://…,强制使用Http协议.
  • 修改hosts WindowsC:\WINDOWS\system32\drivers\etc目录下,Linux用户打开/etc/hosts文件打开后添加以下内容:
     203.208.46.146    www.google.com 
     74.125.113.121    developer.android.com 
     203.208.46.146    dl.google.com 
     203.208.46.146    dl-ssl.google.com