HI ,
I download the android source 5.1.1,
and install the openjdk-7-jdk,
and install required packages(Ubuntu 14.04),
when i use the command 'make' to build the source code ,
it show the error like below:
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.
Your version is: Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode).
The required version is: "1.7.x"
Please follow the machine setup instructions at
https://source.android.com/source/initializing.html************************************************************
build/core/
main.mk:167: *** stop. Stop.
#### make failed to build some targets (18 seconds) ####
root@ubuntu:~/android_src/my_android_src# java -version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
my system is ubuntu15.04 run under vmware fusion ,and the openjdk version is "1.7.0_79"
somebody know how to handle this problem?
thank you !