The Makefile parses the output of 'java -version' and scrapes for the version number. It is having trouble parsing the output because your command returns a strange value based on your JAVA_TOOL_OPTIONS setting.
First step to try would be to set your JAVA_HOME to the root directory of your selected JDK. This will take precedence over the JAVA_TOOL_OPTIONS it is currently picking up.
On many host systems (e.g. Ubuntu), building the latest version actually requires OpenJDK (rather than Oracle). You might try that also.
Dave Smith, PE
@devunwired
--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
============================================
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
************************************************************
wintux@potheadz-vm:~/android-x86$ 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)
wintux@potheadz-vm:~/android-x86$ sudo update-alternatives --config java
Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche /usr/bin/java bereitstellen).
Auswahl Pfad Priorität Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1072 automatischer Modus
* 1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manueller Modus
2 /usr/lib/jvm/java-7-oracle/jre/bin/java 1072 manueller Modus
Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten,
oder geben Sie die Auswahlnummer ein:
First step to try would be to set your JAVA_HOME to the root directory of your selected JDK. This will take precedence over the JAVA_TOOL_OPTIONS it is currently picking up.