1、错误描述
在预装apk时,编译报了如下错误
error: out/target/product/rk3568_r/obj/APPS/*****_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/rk3568_r/obj/APPS/
2、解决方法
需要在对应的Android.mk文件中,添加 LOCAL_DEX_PREOPT := false 即可解决