读书人

ubuntu12.04上载Android源代码

发布时间: 2013-01-06 15:44:47 作者: rapoo

ubuntu12.04下载Android源代码

?

参考:http://source.android.com/source/initializing.html

?

Installing required packages (Ubuntu 12.04)

Building on Ubuntu 12.04 is currently only experimentally supported and is notguaranteed to work on branches other than master.

?

?

?

然后下面步骤,就是准备你下载的目录

$ mkdir WORKING_DIRECTORY$ cd WORKING_DIRECTORY

?

Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.

?

?

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

?

To check out a branch other than "master", specify it with -b:

?

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

?

然后执行:却出错

?

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目录下的manifest.xml里找到fetch属性
改成
fetch= "git://Android.git.linaro.org/"

?

然后就可以下载了...耐心等待把...中间可能会被报错停止掉,重新repo sync 就可以了

?

?

?

?

?

?

读书人网 >Android

热点推荐