opengapps/aosp_build

Error: Expected valid zip or dex file

aanze opened this issue · 1 comments

aanze commented

Trying to build a LineageOS 18 with bundled pico gapps (arm64).
I get the following error:

[ 67% 372/552] GoogleContactsSyncAdapter dexpreopt
FAILED: out/target/product/FP4/obj/APPS/GoogleContactsSyncAdapter_intermediates/dexpreopt.zip
/bin/bash -c "bash out/target/product/FP4/obj/APPS/GoogleContactsSyncAdapter_intermediates/dexpreopt.sh vendor/opengapps/sources/all/app/com.google.android.syncadapters.contacts/30/nodpi/30.apk out/target/product/FP4/obj/APPS/GoogleContactsSyncAdapter_intermediates/dexpreopt.zip"
dex2oatd64 E 02-02 22:35:03   184   184 oat_writer.cc:575] Expected valid zip or dex file: '/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk'
error: out/target/product/FP4/obj/APPS/GoogleContactsSyncAdapter_intermediates/dexpreopt.sh:23 exited with status 1
error in command:
ANDROID_LOG_TAGS="*:e" out/soong/host/linux-x86/bin/dex2oatd64 --avoid-storing-invocation --write-invocation-to=out/target/product/FP4/obj/APPS/GoogleContactsSyncAdapter_intermediates/oat/arm64/package.invocation --runtime-arg -Xms64m --runtime-arg -Xmx512m --runtime-arg -Xbootclasspath:out/soong/FP4/dex_artjars_input/core-oj.jar:out/soong/FP4/dex_artjars_input/core-libart.jar:out/soong/FP4/dex_artjars_input/core-icu4j.jar:out/soong/FP4/dex_artjars_input/okhttp.jar:out/soong/FP4/dex_artjars_input/bouncycastle.jar:out/soong/FP4/dex_artjars_input/apache-xml.jar:out/soong/FP4/dex_bootjars_input/framework.jar:out/soong/FP4/dex_bootjars_input/ext.jar:out/soong/FP4/dex_bootjars_input/telephony-common.jar:out/soong/FP4/dex_bootjars_input/voip-common.jar:out/soong/FP4/dex_bootjars_input/ims-common.jar:out/soong/FP4/dex_bootjars_input/framework-atb-backward-compatibility.jar:out/soong/FP4/dex_bootjars_input/telephony-ext.jar:out/soong/FP4/dex_bootjars_input/WfdCommon.jar --runtime-arg -Xbootclasspath-locations:/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/telephony-ext.jar:/system/framework/WfdCommon.jar ${class_loader_context_arg} ${stored_class_loader_context_arg} --boot-image=out/soong/FP4/dex_artjars/apex/com.android.art/javalib/boot.art:out/soong/FP4/dex_bootjars/system/framework/boot-framework.art --dex-file=$1 --dex-location=/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk --oat-file=out/target/product/FP4/obj/APPS/GoogleContactsSyncAdapter_intermediates/oat/arm64/package.odex --android-root=out/empty --instruction-set=arm64 --instruction-set-variant=cortex-a76 --instruction-set-features=default --no-generate-debug-info --generate-build-id --abort-on-hard-verifier-error --force-determinism --no-inline-from=core-oj.jar --compiler-filter=quicken --generate-mini-debug-info --compilation-reason=prebuilt
aanze commented

Nevermind for some reason not all repos were fetched by git lfs command. I went through them 1 by one and it went fine.