aosp build issue with "error: overriding commands for target...com.google.vr.platform.jar"
Opened this issue · 2 comments
I am trying to build Android-tv with opengapps::nano for hikey960
AOSP is master branch latest on 19May2019.
I have copied opengapps/aosp_build to vendor/opengapps/build
I have copied nezor/all
, nezor/arm
and nezor/arm64
to vendor/opengapps/sources
I added fix for #217 (using /bin/ls
). Additionally I had to use /usr/bin/lzip
instead of lzip
in find_apk.sh
Build now fails with following log:
gps@gps-HP-280-G3-MT:~/andsrc/android-master$ make -j32
============================================
PLATFORM_VERSION_CODENAME=R
PLATFORM_VERSION=R
TARGET_PRODUCT=hikey960_tv
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-26-generic-x86_64-Ubuntu-16.04.3-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
============================================
18:50:32 Disallowed PATH tool "locale" used: []string{"locale", "-a"}
18:50:32 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.
wildcard(out/target/product/hikey960/clean_steps.mk) was changed, regenerating...
18:50:35 Disallowed PATH tool "locale" used: []string{"locale", "-a"}
18:50:35 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.
18:50:46 Disallowed PATH tool "locale" used: []string{"locale", "-a"}
18:50:46 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.
$(shell python "vendor/opengapps/build/core/copy_files.py" "vendor/opengapps/sources/all/" "framework" "28") was changed, regenerating...
18:51:15 Disallowed PATH tool "locale" used: []string{"locale", "-a"}
18:51:15 See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information.
[ 99% 12884/12953] including vendor/opengapps/build/modules/Chrome/Android.mk ...
lzip: Output file 'vendor/opengapps/sources/arm64/app/com.android.chrome/24/nodpi/372915752.apk' already exists, skipping.
Warning: lz decompress command failed for vendor/opengapps/sources/arm64/app/com.android.chrome/24/nodpi/372915752.apk.lz
[ 99% 12898/12953] including vendor/opengapps/build/modules/GoogleCamera/Android.mk ...
lzip: Output file 'vendor/opengapps/sources/arm64/app/com.google.android.googlecamera/28/400-420-480/49456750.apk' already exists, skipping.
Warning: lz decompress command failed for vendor/opengapps/sources/arm64/app/com.google.android.googlecamera/28/400-420-480/49456750.apk.lz
lzip: Output file 'vendor/opengapps/sources/arm64/app/com.google.android.googlecamera/28/nodpi/49456748.apk' already exists, skipping.
Warning: lz decompress command failed for vendor/opengapps/sources/arm64/app/com.google.android.googlecamera/28/nodpi/49456748.apk.lz
[ 99% 12935/12953] including vendor/opengapps/build/modules/PrebuiltGmsCore/Android.mk ...
lzip: Output file 'vendor/opengapps/sources/arm64/priv-app/com.google.android.gms/28/nodpi/17122037.apk' already exists, skipping.
Warning: lz decompress command failed for vendor/opengapps/sources/arm64/priv-app/com.google.android.gms/28/nodpi/17122037.apk.lz
lzip: Output file 'vendor/opengapps/sources/arm64/priv-app/com.google.android.gms/28/320/17122038.apk' already exists, skipping.
Warning: lz decompress command failed for vendor/opengapps/sources/arm64/priv-app/com.google.android.gms/28/320/17122038.apk.lz
lzip: Output file 'vendor/opengapps/sources/arm64/priv-app/com.google.android.gms/28/480/17122039.apk' already exists, skipping.
Warning: lz decompress command failed for vendor/opengapps/sources/arm64/priv-app/com.google.android.gms/28/480/17122039.apk.lz
[100% 12953/12953] writing build rules ...
FAILED:
build/make/core/Makefile:28: error: overriding commands for target `out/target/product/hikey960/system/framework/com.google.vr.platform.jar', previously defined at build/make/core/base_rules.mk:480
18:52:09 ckati failed with: exit status 1
#### failed to build some targets (02:23 (mm:ss)) ####
This is a bit out of my depth right now. Any help is appreciated.
Build succeeds when opengapps is not included.
Apparently frameworks/base/vr/
has build instructions for java library com.google.vr.platform
, so for now, I deleted com.google.vr.platform.jar
files from vendor/opengapps/sources/all/framework/27 and vendor/opengapps/sources/all/framework/28
This allows the build to proceed from this point, but I am not sure if there are any adverse effects.
I am also not yet sure if build will complete after this change.
I am also having the same issue. Any workarounds? Mu build is successful but it doesn't boot