Add to /etc/hosts:
74.125.237.1 dl-ssl.google.com
74.125.71.82 www.googlesource.com
74.125.31.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
59.24.3.173 cache.pack.google.com
Add to /etc/apt/sources.list:
# Begin
deb http://109.123.112.131/ubuntu/ precise main restricted universe multiverse
deb http://109.123.112.131/ubuntu/ precise-security main restricted universe multiverse
deb http://109.123.112.131/ubuntu/ precise-updates main restricted universe multiverse
deb http://109.123.112.131/ubuntu/ precise-proposed main restricted universe multiverse
deb http://109.123.112.131/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports mai
## For sun-java6-jdk
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://ppa.launchpad.net/ferramroberto/java/ubuntu natty main
# End
Un-commnets /etc/apt/sources.list:
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
124M /home/zsd/android/device
121M /home/zsd/android/development
19M /home/zsd/android/bionic
333M /home/zsd/android/packages
5.5G /home/zsd/android/prebuilts
47M /home/zsd/android/hardware
9.1M /home/zsd/android/docs
1.2G /home/zsd/android/frameworks
225M /home/zsd/android/cts
2.7G /home/zsd/android/external
14M /home/zsd/android/art
120K /home/zsd/android/abi
51M /home/zsd/android/libcore
18M /home/zsd/android/developers
4.4M /home/zsd/android/bootable
36M /home/zsd/android/dalvik
344M /home/zsd/android/tools
20G /home/zsd/android/.repo
12M /home/zsd/android/system
33M /home/zsd/android/sdk
11M /home/zsd/android/build
79M /home/zsd/android/ndk
192K /home/zsd/android/libnativehelper
896K /home/zsd/android/pdk
31G /home/zsd/android/
http://blog.csdn.net/jianguo_liao19840726/article/details/9774357
fatal: '../platform/abi/cpp.git' does not appear to be a git repository:
http://bbs.csdn.net/topics/380254094
本文介绍如何通过修改hosts文件和apt源列表来优化Android开发环境,包括添加Google服务相关的IP映射和配置多个软件包源以提高下载速度。

739

被折叠的 条评论
为什么被折叠?



