[ANDROID 問題] 64-BIT ENVIRONMENT REQUIRED WHEN CHECKING BUILD TOOL VERSIONS

出现如下问题:

Checking build tools versions...
build/core/main.mk:72:
************************************************************
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.
build/core/main.mk:75:
************************************************************

 

解决方法:

1、找到源码下的build/core/main.mk

 

 ifeq ($(BUILD_OS),linux)

build_arch := $(shell uname -m) 
ifneq (64,$(findstring 64,$(build_arch))) //这是原来的,删除
ifneq (i686,$(findstring i686,$(build_arch)))//这是删除上一行后在原位置上新增的一行
$(warning
************************************************************)
$(warning You are attempting to build on a 32-bit system.)
 $(warning Only 64-bit build environments are supported beyond
froyo/2.2.)


2、在Android源码中找到以下四个文件并打开:

external/clearsilver/cgi/Android.mk
external/clearsilver/java-jni/Android.mk
external/clearsilver/util/Android.mk
external/clearsilver/cs/Android.mk


找到:
LOCAL_CFLAGS    和     LOCAL_LDFLAGS   

改成:
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += 
-m32

这样就可以了!

 

你可能感兴趣的:(android,linux,jni,OS,cgi)