参考http://blog.csdn.net/zhangxu365/article/details/7477447
http://source.android.com/source/downloading.html
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest
然后:
#!/bin/shcount=0ret=1while [ $ret -ne 0 ]dorepo syncret=$?count=$(( $count + 1))echo "try $count, ret:$ret"doneecho "try $count, ret:$ret"
chmod a+x tryrepo.sh./tryrepo.sh
就可以make或者make sdk了