Compiling Android 14 may encounter issues:
- lunch
lunch
You're building on Linux
Warning: Cannot display lunch menu.
Note: You can invoke lunch with an explicit target:
usage: lunch [target]
Which would you like? [aosp_arm-eng]
Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-eng):
rm: 无法删除 '/home/lhd/customized_project/3576/rk3576_Android14RKR6/out/.soong_ui.trace': 权限不够
This is because the author has already compiled the SDK, and some dependent files are saved in the out directory. Simply delete the out directory
lhd@armsom:~/customized_project/3576/rk3576_Android14RKR6$ lunch
You're building on Linux
Lunch menu .. Here are the common combinations:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_x86-eng
4. aosp_x86_64-eng
5. rk3576_ebook-user
6. rk3576_ebook-userdebug
7. rk3576_sige5_u-user
8. rk3576_sige5_u-userdebug
9. rk3576_u-user
10. rk3576_u-userdebug
11. rk3576s_u-user
12. rk3576s_u-userdebug
Which would you like? [aosp_arm-eng]
Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-eng): 8
Hint: next time you can simply run 'lunch rk3576_sige5_u-userdebug'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
PRODUCT_INCLUDE_TAGS=com.android.mainline
TARGET_PRODUCT=rk3576_sige5_u
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.8.0-49-generic-x86_64-Ubuntu-22.04.5-LTS
HOST_CROSS_OS=windows
BUILD_ID=UQ1A.240205.004.B1
OUT_DIR=out
============================================
- Compile uboot report permission issue
rm: 无法删除 'u-boot/arch/nds32/cpu/n1213/ag101/timer.c': 权限不够
Ensure that the folder is created by the current user
sudo chown -R lhd:lhd /path/to/rk3576_Android14RKR6
- Build android failed
rk3576 WILL NOT COMPILE rkaiq_tool_server binary
error: hardware/rockchip/libmpimmz/Android.bp:24:1: module "gen_mmz_version": module source path "hardware/rockchip/libmpimmz/.git/HEAD" does not exist
16:23:35 soong bootstrap failed with: exit status 1
#### failed to build some targets (02:45 (mm:ss)) ####
Build android failed!
vi hardware/rockchip/libmpimmz/Android.bp
delete. git/HEAD