1、安装依赖包:yum install -y gcc make libstdc++.i686 libstdc++-devel.i686 zlib-devel openssl-devel perl cpio expat-devel gettext-devel autoconf glibc.i686 glibc-devel.i686 zlib-devel.i686 libstdc++.i686 libX11-devel.i686 ncurses-devel.i686 ncurses-libs.i686 gperf flex gcc-c++ bison
2、安装jdk1.6(必须从Oracle官网下载:
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
)
3、进入Android目录
4、source
source build/envsetup.sh
5、lunch 9(这个数字根据不同系统而不同)
6、make -j8 (启动8个线程,也可以是2,4,8,16,32……)
机器配置不能太差,至少要双核,4G内存。不然编译非常容易出错