由于这些年Android 更新很快,每年的Google IO都会引入很多特性,在兴奋于这些特性之余也常常需要忍受被墙之苦,但是好在很多好心人士,提供了SDK的镜像,之前一直在AndroidDevTool上下载更新,但是最近发现上面的更新速度也逐渐跟不上脚步了,所以下面推荐一个Android SDK 的镜像更新方式:
该镜像是由南阳理工提供:

手动更改配置文件

Utopic Unicorn (ubuntu 14.10) 编辑 /etc/apt/sources.list 文件 (需要使用 sudo), 修改文件内容为加以下条目(操作前请做好相应备份)

deb http://mirror.nyist.edu.cn/ubuntu/ utopic main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-security main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-updates main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-proposed main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-security main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-updates main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-proposed main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-backports main restricted universe multiverse

Ubuntu14.04 LTS 配置文件编辑 /etc/apt/sources.list 文件 (需要使用 sudo), 修改文件内容为加以下条目(操作前请做好相应备份)

deb http://mirror.nyist.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse

Ubuntu14.10

deb http://mirror.nyist.edu.cn/ubuntu/ utopic main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-security main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-updates main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-proposed main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-security main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-updates main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-proposed main restricted universe multiverse
deb-src http://mirror.nyist.edu.cn/ubuntu/ utopic-backports main restricted universe multiverse

Ubuntu13.10

deb http://mirror.nyist.edu.cn/ubuntu/ saucy main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ saucy-security main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ saucy-updates main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ saucy-proposed main restricted universe multiverse
deb http://mirror.nyist.edu.cn/ubuntu/ saucy-ba使用说明

配置步骤
  1. 启动 Android SDK Manager ,打开主界面,依次选择「Tools」、「Options…」,弹出『Android SDK Manager - Settings』窗口;

  2. 在『Android SDK Manager - Settings』窗口中,在「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirror.nyist.edu.cn和80,并且选中「Force https://… sources to be fetched using http://…」复选框。设置完成后单击「Close」按钮关闭『Android SDK Manager - Settings』窗口返回到主界面;

  3. 依次选择「Packages」、「Reload」。

  4. 完成

由于网络关系有的时候会下载不成功,这时候被别放弃,^ V ^ 多试几次。

Contents
  1. 1. 手动更改配置文件
  2. 2. 配置步骤