1

我安装了java,两次,/usr/lib/jvm 包含三个文件夹(默认java,java-1.6-openjdk,java-6-openjdk)当我尝试

使-j4

它给了我输出:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.

Your version is: java version "1.6.0_20".
The correct version is: Java SE 1.6.

Please follow the machine setup instructions at
    http://source.android.com/source/download.html
************************************************************
build/core/main.mk:131: *** stop.  Stop.

主版本相同,只有次要版本不同,我找不到 java 1.6_0,我现在的解决方案是什么?

提前致谢

4

1 回答 1

2

从以下位置下载适当的 sun jdk:

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u31-oth-JPR

然后尝试构建

于 2012-04-27T10:33:23.410 回答