1. source build/envsetup.sh
2. lunch
3. aosp_x86_64.-eng
4. make
5. make sdk
執行上面步驟,出現了一些問題
SDK: warning: including GNU target out/target/product/generic_x86_64/system/xbin/mmc_utils
development/build/sdk.atree:453: couldn't locate source file: system/app/EmulatorSmokeTests/EmulatorSmokeTests.apk
ninja: build stopped: subcommand failed.
17:24:39 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
解決辦法:
執行一些基本的流程
1. source build/envsetup.sh
2. lunch
3. aosp_x86_64.-eng
4. make sdk
編譯缺失的tools
make dmtracedump
make etc1tool
make split-select
make bcc_compat
make apksigner
make dx
make libaapt2_jni
make layoutlib-legacy
用#註釋掉 userdata.img那行的引用
##############################################################################
# System image Component
##############################################################################
# System images + Kernel
system.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/system.img
ramdisk.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/ramdisk.img
#userdata.img system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/userdata.img
system/build.prop system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/build.prop
# Note: the kernel image is handled by sdk-android-<abi>.atree now.
用#註釋掉 EmulatorSmokeTests.apk那行的引用
##############################################################################
# Tests Component
##############################################################################
#system/app/EmulatorSmokeTests/EmulatorSmokeTests.apk tests/emulator-test-apps/EmulatorSmokeTests.apk
執行
make sdk
看到
#### make completed successfully (08:47 (mm:ss)) ####
完事...