您的位置:首页 > 移动开发 > Android开发

在fedora 10下载android源码

2011-01-16 12:50 344 查看
1. 安装相关软件

通过yum升级和安装

gnupg flex bison gperf zip curl

2. 安装repo

curl http://android.git.kernel.org/repo >~/repo (但我没有成功,需要把http://删掉)

chmod 777 ~/repo

修改repo的内容git改成http

REPO_URL='http://android.git.kernel.org/tools/repo.git' (但我没有成功,还是用git)

mv repo /usr/bin/

3. init repo 初始化repo

mkdir -P /local/root/android

进入android目录

repo init -u http://android.git.kernel.org/platform/manifest.git

中间过程:

From http://android.git.kernel.org/platform/manifest
* [new tag] android-1.0 -> android-1.0

Your Name [root]:
Your Email [root@flyingqr.localdomain]:

Your identity is:
is this correct [y/n]? y

repo initialized in /local/root/android

这说明本地的版本库已经更新好了

5. 开始下载源码repo sync

如果中间到某一步没有反映了,就Ctrl+C终止,然后repo sync继续,repo支持断点续传
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: