Refer to these two blog posts:
Http://blog.sina.com.cn/s/blog_70b9730f01016peg.html
Http://www.cnblogs.com/act262/p/4179093.html
Download Android source code, the configuration of the environment is not a problem, there are a lot of articles on the Internet.
The only difficulty is that Android's official address on Google has been wall.
Grass Mud horse gfw, in order to solve this difficulty, Lao Tze two days of precious youth so wasted.
Finally, the best solution is to download through the image.
There are several images that can be viewed:
Https://android.git.linaro.org/gitweb
http://git.omapzoom.org/
git://aosp.tuna.tsinghua.edu.cn/android (Help:https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/android )
Finally, we chose the image of Tsinghua University.
in the above blog mentioned in the Tsinghua Mirror page to see the address Http://aosp.tuna.tsinghua.edu.cn/android/now no longer exists and will jump to the help page.
Add: The actual use of the connection will often be broken, do not know what the reason, so still need to look after the time, re-run repo sync. May be Tsinghua's this server capacity is limited, can be replaced by two other foreign mirrors.
Also supplement: Linano seemingly individual projects older, such as repo, recommended omapzoom.
Download the latest Android source via image