I built the nougat-x86 branch today and I had to overcome this error and a couple others. Here's what I've done.
(I'm copy and pasting my bash history so these should be the actual commands I used)
First I synced with the following:
repo init -u git://
git.osdn.net/gitroot/android-x86/manifest -b nougat-x86
repo sync
Then I had to manually clone google apf:
mkdir -p hardware/google/apf
cd hardware/google/apf
git clone
https://android.googlesource.com/platform/hardware/google/apf .
Then fix the error David is talking about by adding the class to the whitelist:
diff --git a/core/tasks/check_boot_jars/package_whitelist.txt b/core/tasks/check_boot_jars/package_whitelist.txt
index 3cb6e28..39f52e2 100644
--- a/core/tasks/check_boot_jars/package_whitelist.txt
+++ b/core/tasks/check_boot_jars/package_whitelist.txt
@@ -227,3 +227,6 @@ org\.apache\.xalan\.extensions
org\.apache\.xalan\.processor
org\.apache\.xalan\.transformer
org\.apache\.xalan\.xslt
+
+
+org\.android_x86\.analytics
Then fix a couple warnings treated as error as per compiler parameters:
diff --git a/vendor_libs/test_vendor_lib/src/hci_transport.cc b/vendor_libs/test_vendor_lib/src/hci_transport.cc
index 8e64f71..2538faf 100644
--- a/vendor_libs/test_vendor_lib/src/hci_transport.cc
+++ b/vendor_libs/test_vendor_lib/src/hci_transport.cc
@@ -105,7 +105,7 @@ void HciTransport::OnFileCanWriteWithoutBlocking(int fd) {
CHECK(fd == GetVendorFd());
if (!outbound_events_.empty()) {
base::TimeTicks current_time = base::TimeTicks::Now();
- auto it = outbound_events_.begin();
+ //auto it = outbound_events_.begin();
// Check outbound events for events that can be sent, i.e. events with a
// timestamp before the current time. Stop sending events when
// |packet_stream_| fails writing.
@@ -149,7 +149,7 @@ void HciTransport::PostDelayedEventResponse(std::unique_ptr<EventPacket> event,
}
LOG_INFO(LOG_TAG, "Posting event response with delay of %lld ms.",
- delay.InMilliseconds());
+ (long long)delay.InMilliseconds());
AddEventToOutboundEvents(
std::make_unique<TimeStampedEvent>(std::move(event), delay));
I haven't investigated these issues to the root so it might be related to my setup in some way I'm not sure.