1.安装cygwin
http://www.cygwin.com/。国内mirror: http://mirrors.sohu.com/cygwin。安装下面的库。
Net -> curl
Devel -> git,git-completion,git-gui,gitk
Libs -> libreadline6,libiconv2
Editors -> vim
Python -> python
Utils -> gnupg2.安装这个dll
ftp://ftp.gnupg.org/gcrypt/binary/libiconv-1.9.1.dll.zip
3.安装repo
curl https://storage.googleapis.com/git-repo-downloads/repo > /bin/repo
chmod a+x /bin/repo
4.下载
repo init -u https://android.googlesource.com/platform/manifest.git -b android-5.0.2_r1
repo sync