[Q] Kitkat (Hammerhead AOSP) compilation errors

Search This thread

tthtlc

Member
May 28, 2010
7
1
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":

target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41


Full errors are here:

http://pastebin.com/QAFQWbF5

Can someone please help with the error?
 

shimp208

Inactive Recognized Contributor
Jan 25, 2011
2,613
3,089
Boston
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":

target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41


Full errors are here:

http://pastebin.com/QAFQWbF5

Can someone please help with the error?

It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
 

tthtlc

Member
May 28, 2010
7
1
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.


My java version is the latest 1.7 (from Ubuntu repository):

Ubuntu 12.04.03, LTS, 64-bit

java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

javac 1.7.0_51

As per this:

http://forum.pcsoft.fr/fr-FR/pcsoft...n-error-target-release-1-5-conflicts/read.awp

and this:

https://groups.google.com/forum/#!topic/android-platform/NHhin464dxc

It seemed that Java 7 cannot generate compatible Java 5 binaries, whereas Java 6 still can.

Ok, I shall try downgrading it to Java 6 than.

Am I right to say this?
 
  • Like
Reactions: Manuellama

Top Liked Posts