> Android 10 is supposed to be built with Java 9 only.

Are you sure?  I had the impression that if you were building master then, yes, 
Java 9.  Others are indicating that Java 8 is the way to go:

https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-android-10-0-0

It would be nice to have some definitive direction on the topic.

I was able to complete an AOSP 10 build using Java 8 on Ubuntu 16.04.  It 
dumped about three times and one of those was a Java error that I did not 
record.  Since I like to use ccache (and did not run make clobber) each time it 
hung I restarted make and eventually it was able to get it built.  On the other 
hand, building AOSP 9 PQ3A.190801 for Pixel XL sails without any problems on 
the same workstation.

The only issue that I am having with my build of AOSP 10 is that it has intent 
complaints about com.android.messaging during texting.  I have not spent any 
time figuring that one out since it feels like it might be a build glitch due 
to the aforementioned errors.

John

From: android-building@googlegroups.com 
[mailto:android-building@googlegroups.com] On Behalf Of Brian Moore
Sent: Saturday, November 23, 2019 9:33 AM
To: Android Building
Subject: [android-building] Java error building AOSP 10


I've been building AOSP for my pixel devices for a few versions now, but I'm 
running into an issue in the release of Android 10.

I'm working with 10.0.0 r10, building for Pixel 3 (blueline).
I have the Google and QCom vendor binaries in the vendor/ tree, just as I've 
always done.
I do a normal build process as shown in the attached file, and it always fails 
at the same point.

I broke down the cluster of commands that it was failing on, and found it was 
this specific statement throwing the error:

java -jar out/host/linux-x86/framework/RecoveryImageGenerator.jar --image_width 
$((1080 - 10)) --text_name recovery_installing --font_dir 
out/target/product/blueline/obj/PACKAGING/recovery_font_files_intermediates 
--resource_dir bootable/recovery/tools/recovery_l10n/res/ --output_file 
out/target/product/blueline/obj/PACKAGING/recovery_text_res_intermediates//installing_text.png
 --center_alignment

I found that if I ran this part of the build with Java 8 instead of Java 9 (by 
modifying my default PATH), it worked.
But using Java 8 for the entire build causes other errors, and from what I have 
read, Android 10 is supposed to be built with Java 9 only.

The only thing that I'm doing differently than with builds of previous versions 
of Android is that I am building without the vendor/opengapps tree, because 
OpenGapps hasn't created a repository for Android 10.  However, I'm pretty sure 
that Google apps are not required just for a stock AOSP build.

Any idea what the problem could be?  I'm thinking I must have some 
configuration wrong on my end, because I'm basically building the unmodified 
source directly from Google.
--
--
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to 
android-building@googlegroups.com<mailto:android-building@googlegroups.com>
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com<mailto:android-building+unsubscr...@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-building+unsubscr...@googlegroups.com<mailto:android-building+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/e5f6f455-2fb9-4d26-bb8e-a0fecece260f%40googlegroups.com<https://groups.google.com/d/msgid/android-building/e5f6f455-2fb9-4d26-bb8e-a0fecece260f%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/150b28b044f1478f8ef9db3d9317a2d5%40mail.rrcic.com.

Reply via email to