1、安装repo
To install, initialize, and configure Repo, follow these steps:
1. Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
$ cd ~
$ mkdir bin
$ echo $PATH
2. Download the repo script and make sure it is executable:
$ curl http://android.git.kernel.org/repo >~/bin/repo$ chmod a+x ~/bin/repo
如果repo不在PATH中,则需要进行添加,可以使用
export PATH=$PATH:your_path
命令。当然如果不添加,在运行repo的时候就要加入完整路径
2、安装git-core
可以下载Macport,然后使用sudo port selfupdate更新下
3、下载源代码
To clone one of these trees, install git, and run:
git clone git://android.git.kernel.org/ + project path.
To clone the entire platform, install repo, and run:
mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync
可以使用repo的方式下载完整源代码
---------------------------------------------------------
专注移动开发
Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
posted on 2010-03-11 22:04
TiGERTiAN 阅读(3896)
评论(0) 编辑 收藏 所属分类:
Java 、
Android