海王  

guide follow :

 

http://source.android.com/source/downloading.html

 

 

=========================

1. 

$ mkdir ~/bin

$ PATH=~/bin:$PATH

 

2.

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

 

 or(if err: curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo)

3.

 

$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY

 

4.

$ repo init -u https://android.googlesource.com/platform/manifest

5.
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
6.
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
or
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.3_r1
7.
$ repo sync

当执行:repo sync 时,就出现:
fatal: '../platform/abi/cpp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/abi/cpp 上面的错误,上网搜了很久,没找到像这个样子的,后来,看一个网友说到,删除旧版本,这提醒了我,我昨天用repo安装不同的版本,都在一个文件夹中,这时我查看一下那目录,没有想到有一个.repo/ 的文件夹,我把它删除了,再按http://source.android.com/source/downloading.html这里的操作,最后成功了

 

 

 

 .....

 

posted on 2012-04-01 09:37  海王  阅读(1794)  评论(1编辑  收藏  举报