$ curl http://android.git.kernel.org/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir working-directory-name
$ cd working-directory-name
$ repo init-u git://android.git.kernel.org/platform/manifest.git
同步所有的项目
$ repo sync
要同步单个项目
$ repo sync
project1 project2 ...
$make
如果出现了如下
错误:
build/core/main.mk:73: You are attempting to build on a 32-bit
system.
build/core/main.mk:74: Only 64-bit build environments are supported beyond froyo/2.2.
解决办法:
./external/clearsilver/cgi/Android.mk
./external/clearsilver/java-jni/Android.mk
./external/clearsilver/util/Android.mk
./external/clearsilver/cs/Android.mk
四个文件中的
LOCAL_CFLAGS += -m64
LOCAL_LDFLAGS += -m64
注释掉,或者将“64”换成“32”
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
./build/core/main.mk 中的
ifneq (64,$(findstring 64,$(build_arch)))
改为:
ifneq (i686,$(findstring i686,$(build_arch)))