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