源碼下載完畢後執行以下命令:
root@alex-MS-7236:~# cd mydroid
root@alex-MS-7236:~/mydroid# repo sync
這時出現錯誤
============================================
Checking build tools versions...
build/core/main.mk:76: ************************************************************
build/core/main.mk:77: You are attempting to build on a 32-bit system.
build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2.
build/core/main.mk:79: ************************************************************
build/core/main.mk:80: *** stop。 停止。
============================================
這是因為froyo/2.2預設只支援64-bit,看到有些網友還要去下載64-比他的作業系統。
解決辦法:將./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)))