Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,395 Members 46,906 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Kitkat (Hammerhead AOSP) compilation errors

Tip us?
 
tthtlc
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: May 2010
Default [Q] Kitkat (Hammerhead AOSP) compilation errors

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
Old
#2  
shimp208's Avatar
Recognized Contributor
Thanks Meter 1522
Posts: 2,224
Join Date: Jan 2011
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by tthtlc View Post
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
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: May 2010
Quote:
Originally Posted by shimp208 View Post
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....licts/read.awp

and this:

https://groups.google.com/forum/#!to...rm/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?
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes