Error when building Reference TV App

637 views
Skip to first unread message

David Toll

unread,
Feb 3, 2019, 1:05:50 PM2/3/19
to Android Building
When I try to build the master branch of the Reference TV App on Ubuntu 14.04 LTS (following the instructions here: https://source.android.com/devices/tv/reference-tv-app) I get the following error:

dtoll@latitude-e6430:~/live-tv$ make LiveTv
============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=aosp_x86
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=LiveTv
TARGET_ARCH=x86
TARGET_ARCH_VARIANT=x86
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-141-generic-x86_64-Ubuntu-14.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out
============================================
build/make/core/aux_config.mk:185: warning: real file "droidcore" depends on PHONY target "auxiliary"
[ 93% 5270/5616] //prebuilts/sdk/current/extras/app-toolkit:android-arch-lifecycle-viewmodel-nodeps aapt2 link
W/ziparchive(23227): Zip: empty archive?
[ 93% 5272/5616] //prebuilts/sdk/current/extras/app-toolkit:android-arch-lifecycle-runtime-nodeps aapt2 link
W/ziparchive(23221): Zip: empty archive?
[ 93% 5274/5616] //prebuilts/sdk/current/support:android-support-documentfile-nodeps aapt2 link
W/ziparchive(23243): Zip: empty archive?
[ 93% 5275/5616] //prebuilts/sdk/current/extras/app-toolkit:android-arch-core-runtime-nodeps aapt2 link
W/ziparchive(23214): Zip: empty archive?
[ 93% 5276/5616] //prebuilts/sdk/current/support:android-support-cursoradapter-nodeps aapt2 link
W/ziparchive(23242): Zip: empty archive?
[ 94% 5289/5616] //prebuilts/sdk/current/support:android-support-interpolator-nodeps aapt2 link
W/ziparchive(23401): Zip: empty archive?
[ 94% 5294/5616] //prebuilts/sdk/current/support:android-support-localbroadcastmanager-nodeps aapt2 link
W/ziparchive(23494): Zip: empty archive?
[ 94% 5296/5616] //prebuilts/sdk/current/support:android-support-print-nodeps aapt2 link
W/ziparchive(23592): Zip: empty archive?
[ 94% 5298/5616] //prebuilts/sdk/current/extras/app-toolkit:android-arch-lifecycle-livedata-core-nodeps aapt2 link
W/ziparchive(23559): Zip: empty archive?
[ 94% 5304/5616] //prebuilts/sdk/current/support:android-versionedparcelable-nodeps aapt2 link
W/ziparchive(23812): Zip: empty archive?
[ 94% 5333/5616] //prebuilts/sdk/current/support:android-support-asynclayoutinflater-nodeps aapt2 link
W/ziparchive(23982): Zip: empty archive?
[ 95% 5339/5616] //prebuilts/sdk/current/support:android-support-loader-nodeps aapt2 link
W/ziparchive(24071): Zip: empty archive?
[ 95% 5343/5616] //prebuilts/sdk/current/support:android-support-customview-nodeps aapt2 link
W/ziparchive(24017): Zip: empty archive?
[ 95% 5351/5616] //prebuilts/sdk/current/support:android-support-swiperefreshlayout-nodeps aapt2 link
W/ziparchive(24116): Zip: empty archive?
[ 95% 5353/5616] //prebuilts/sdk/current/support:android-support-tv-provider-nodeps aapt2 link
W/ziparchive(24143): Zip: empty archive?
[ 95% 5361/5616] //prebuilts/sdk/current/support:android-support-vectordrawable-nodeps aapt2 link
W/ziparchive(24216): Zip: empty archive?
[ 95% 5371/5616] //prebuilts/sdk/current/support:android-support-core-utils-nodeps aapt2 link
W/ziparchive(24275): Zip: empty archive?
[ 95% 5377/5616] //prebuilts/sdk/current/support:android-support-drawerlayout-nodeps aapt2 link
W/ziparchive(24318): Zip: empty archive?
[ 95% 5378/5616] //prebuilts/sdk/current/support:android-support-slidingpanelayout-nodeps aapt2 link
W/ziparchive(24340): Zip: empty archive?
[ 95% 5389/5616] //prebuilts/sdk/current/support:android-support-viewpager-nodeps aapt2 link
W/ziparchive(24448): Zip: empty archive?
[ 96% 5396/5616] //prebuilts/sdk/current/support:android-support-v7-palette-nodeps aapt2 link
W/ziparchive(24542): Zip: empty archive?
[ 96% 5410/5616] //prebuilts/sdk/current/support:android-support-core-ui-nodeps aapt2 link
W/ziparchive(24599): Zip: empty archive?
[ 96% 5416/5616] //prebuilts/sdk/current/support:android-support-animatedvectordrawable-nodeps aapt2 link
W/ziparchive(25031): Zip: empty archive?
[ 96% 5432/5616] //prebuilts/sdk/current/support:android-support-fragment-nodeps aapt2 link
W/ziparchive(25351): Zip: empty archive?
[ 97% 5466/5616] //prebuilts/sdk/current/support:android-support-v4-nodeps aapt2 link
W/ziparchive(26395): Zip: empty archive?
[ 98% 5541/5616] //prebuilts/sdk/current/support:android-support-v14-preference-nodeps aapt2 link
W/ziparchive(27924): Zip: empty archive?
[ 99% 5600/5616] Target Java: out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes-full-debug.jar
FAILED: out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes-full-debug.jar
/bin/bash -c "(rm -f out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes-full-debug.jar ) && (rm -rf out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/anno ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/ ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/anno ) && (out/soong/host/linux-x86/bin/zipsync -d out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/srcjars -l out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/srcjar-list -f \"*.java\"  out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/aapt2.srcjar ) && (if [ -s out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/java-source-list -o -s out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/srcjar-list ] ; then out/soong/host/linux-x86/bin/soong_javac_wrapper  prebuilts/jdk/jdk9/linux-x86/bin/javac -Xmaxerrs 9999999 -encoding UTF-8 -sourcepath \"\" -g -XDskipDuplicateBridges=true -XDstringConcat=inline -encoding UTF-8   -bootclasspath out/target/common/obj/JAVA_LIBRARIES/sdk_system_current_android_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/sdk-core-lambda-stubs_intermediates/classes.jar  -classpath out/target/common/obj/JAVA_LIBRARIES/lib-exoplayer_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/lib-exoplayer-v2-core_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/tv-common_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-annotations_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-nano_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-compat_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-core-ui_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-tv-provider_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-v7-palette_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-v7-recyclerview_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-v17-leanback_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/android-support-tv-provider_intermediates/classes.jar  -d out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes -s out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/anno  -source 1.8 -target 1.8  \\@out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/java-source-list \\@out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/srcjar-list || ( rm -rf out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes ; exit 41 ) fi ) && (find out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes -name 'R.class' -o -name 'R\$*.class' -o -name 'Manifest.class' -o -name 'Manifest\$*.class' | xargs rm -rf ) && (prebuilts/jdk/jdk9/linux-x86/bin/jar -cf out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes-full-debug.jar     @<(find out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes -type f | sort | build/soong/scripts/jar-args.sh out/target/common/obj/JAVA_LIBRARIES/live-tv-tuner_intermediates/classes; echo \"-C out/empty .\") )"
packages/apps/TV/tuner/src/com/android/tv/tuner/setup/LineupFragment.java:125: error: package com.android.tv.common.R does not exist
                        com.android.tv.common.R.id.guided_step_fragment_container,
                                               ^
1 error
[ 99% 5601/5616] //bionic/libc:common_libc versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
16:14:26 ninja failed with: exit status 1

#### failed to build some targets (05:21 (mm:ss)) ####



If I try to build either the android-live-tv or android-live-tv-l-mr1 branches instead, I see the following errors from the tapas command:

dtoll@latitude-e6430:~/live-tv$ tapas LiveTv x86
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Can't find toolchain for unknown architecture: 
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1
Failed to find deps of android/soong/cmd/soong_ui: Error parsing directory "/home/dtoll/live-tv/external/golang-protobuf/proto": open /home/dtoll/live-tv/external/golang-protobuf/proto: no such file or directory
exit status 1

Nick Chalko

unread,
Feb 6, 2019, 11:54:23 AM2/6/19
to Android Building
Sorry for the breakage.

This my current number one priority . It is broken internally also.  I will post an update when I get this working again.

David Toll

unread,
Mar 20, 2019, 4:26:07 PM3/20/19
to Android Building
Is there any update? I tried getting the latest code and rebuilding, but now it stops at a much earlier point in the build:

dtoll@latitude-e6430:~/live-tv$ make LiveTv
============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=aosp_x86
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=LiveTv
TARGET_ARCH=x86
TARGET_ARCH_VARIANT=x86
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-Ubuntu-14.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out
============================================
[100% 133/133] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: frameworks/base/packages/FusedLocation/Android.bp:15:1: module "FusedLocation" variant "android_common": sdk_library: invalid sdk version "current", "prebuilts/sdk/current/system/com.android.location.provider.jar" does not exist
16:13:57 soong bootstrap failed with: exit status 1

#### failed to build some targets (31 seconds) ####

Cheers,
Dave.

Andy Clark

unread,
Jun 16, 2019, 10:43:20 PM6/16/19
to Android Building
What is the status of this?

I am trying to build this and it is still broken.  Will it be fixed soon?

I'm getting this error

packages/apps/TV/tuner/src/com/android/tv/tuner/setup/LineupFragment.java:125: error: package com.android.tv.common.R does not exist
                        com.android.tv.common.R.id.guided_step_fragment_container,

Cheers

Andy

Haris Zukanović

unread,
Aug 1, 2019, 10:54:23 AM8/1/19
to Android Building
I tried building today... it still does not work...
Any updates to expect soon?

Nick Chalko

unread,
Aug 1, 2019, 3:12:01 PM8/1/19
to android-...@googlegroups.com
Sorry about that.  


I have verified that my latest internal version build on Q.
I am working with my build team to get the source on Q updated and that will be released to public when Q is released.

Meanwhile do you have access to partner engineering source ?


On Thu, Aug 1, 2019 at 7:54 AM Haris Zukanović <haris.z...@morescreens.tv> wrote:
I tried building today... it still does not work...
Any updates to expect soon?

--
--
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 a topic in the Google Groups "Android Building" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-building/f6aGR9qo9WI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/6fea0bfe-0e69-43ad-a4ed-327d74f7a576%40googlegroups.com.


--
Nick Chalko | Software Engineer | nch...@google.com |   :-) 
Generate your java flags for easier testing.
go/java-flags-generator

jw wang

unread,
Aug 1, 2019, 10:23:58 PM8/1/19
to Android Building

Hi Nick

what do you mean for "partner engineering source " ?

is it a android Q pre aosp that available for the pixel device, I mean, I'm looking for some way to get a pre-Q AOSP that I'm able to build Q userdebug image for my pixels, 

so I can start some migration of the project inside framework (no source code available in androidsource for general public) on the upcoming OS, 

I've tried to write to android-pa...@google.com but end up nothing, can you give me some clue ?






On Friday, 2 August 2019 03:12:01 UTC+8, Nick Chalko wrote:
Sorry about that.  


I have verified that my latest internal version build on Q.
I am working with my build team to get the source on Q updated and that will be released to public when Q is released.

Meanwhile do you have access to partner engineering source ?


On Thu, Aug 1, 2019 at 7:54 AM Haris Zukanović <haris.z...@morescreens.tv> wrote:
I tried building today... it still does not work...
Any updates to expect soon?

--
--
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

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 a topic in the Google Groups "Android Building" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-building/f6aGR9qo9WI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-...@googlegroups.com.

Glenn Kasten

unread,
Aug 1, 2019, 10:28:00 PM8/1/19
to Android Building
Please see the second paragraph of
that starts "While we read ...". 


On Thursday, August 1, 2019 at 7:23:58 PM UTC-7, jw wang wrote:

Hi Nick

what do you mean for "partner engineering source " ?

is it a android Q pre aosp that available for the pixel device, I mean, I'm looking for some way to get a pre-Q AOSP that I'm able to build Q userdebug image for my pixels, 

so I can start some migration of the project inside framework (no source code available in androidsource for general public) on the upcoming OS, 

I've tried to write to android-partnerships@google.com but end up nothing, can you give me some clue ?
Reply all
Reply to author
Forward
0 new messages