参考: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 not
guaranteed to work on branches other than master.
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
准备完毕后,开始真正的下载工作了
Downloading the Source Tree
Installing Repo
Repo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Version Control
.
To install, initialize, and configure Repo, follow these steps:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
Download the Repo script and ensure it is executable:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
然而,实际下载确因总总原因无法下载
网上有好心人准备地址:
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
然后下面步骤,就是准备你下载的目录
$ 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 就可以了
分享到:
相关推荐
ubuntu12.04编译android4.1.1_r6源代码步骤定义.pdf
ubuntu12.04编译android4.1.1_r6源代码步骤.docx
ubuntu12.04编译android4.1.1_r6源代码步骤.pdf
ubuntu12.04编译android4.1.1_r6源代码步骤[归类].pdf
定制的ubuntu12.04 的ISO镜像,安卓环境已经安装好,1.3G左右。 刻录U盘启动后, 下载了代码直接编译即可! 有需要的可以下载
ubuntu12.04搭建android开发环境的过程介绍
Ubuntu 12.04 菜鸟完全使用教程让你用最快的速度熟悉使用Ubuntu 12.04!
Ubuntu 12.04 搭建Android开发环境.rar
ubuntu 12.04 precise的源,主要是中科大的和浙大的,速度非常快,希望各位试用。谢谢
Ubuntu12.04的apt-get搜狐源,直接下载至/etc/apt/下即可,执行apt-get update
12.04 ubuntu的下载源,已验证,速度还可以
Ubuntu12.04 nginx python uwsgi Django安装步骤
qt ubuntu12.04 glut c语言 示例代码 成功运行显示绿色小框
ubuntu12.04下Java开发环境的搭建
Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+...
libc6 for ubuntu 12.04 所有依赖的库都打包 .
Ubuntu12.04下编译和下载Android4.0.3源码
ubuntu12.04 server版本,虚拟机共享宿主机的无线网上网,亲测,有图。
ubuntu10.04及12.04编译android环境搭建.txt
用 VMware 安装 Ubuntu 12.04详细过程图解