Hardware:i.MX 8M Nano Evaluation Kit | NXP Semiconductors
Android version: 13.0.0_1.0.0
Compile environment:
VMware & Ubuntu18.04.6
RAM is 28GB
Number of processors is one
Number of cores per processor is eight
Reference documents:《Android_User's_Guide Rev. android-13.0.0_1.0.0 — 13 January 2023》
Compile command :
cd ${ANDROID_BUILD_TOP}
source build/envsetup.sh
lunch evk_8mn-userdebug
./imx-make.sh -j2 2>&1 | tee build-log.txt
The error is reported as follows,Please help:
[ 49% 25323/51107] //frameworks/base/core/res:framework-res aapt2 compile frameworks/base/core/res/res 73 [common]
[ 49% 25324/51107] //frameworks/base/core/res:framework-res aapt2 compile frameworks/base/core/res/res 74 [common]
[ 49% 25325/51107] //frameworks/base/core/res:framework-res aapt2 compile frameworks/base/core/res/res 75 [common]
[ 49% 25326/51107] //frameworks/base/core/res:framework-res aapt2 compile frameworks/base/core/res/res 76 [common]
[ 49% 25327/51107] //frameworks/base/core/res:framework-res aapt2 compile frameworks/base/core/res/res 77 [common]
FAILED: out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw_color_fade_frag.frag.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw_color_fade_vert.vert.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw_fallback_categories.csv.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw_fallbackring.ogg.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ar_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ar_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-cs_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-cs_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-da_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-da_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-de_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-de_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-en-rGB_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-en-rGB_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-es_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-es_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-fi_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-fi_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-fr_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-fr_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-hu_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-hu_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-it_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-it_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-iw_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-iw_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ja_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ja_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ko_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ko_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-nl_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-nl_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-pl_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-pl_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-pt-rBR_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-pt-rBR_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-rm_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-rm_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ru_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-ru_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-th_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-th_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-tr_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-tr_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-zh-rCN_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-zh-rCN_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-zh-rTW_loaderror.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/raw-zh-rTW_nodomain.html.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_explode.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_fade.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_move.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_no_transition.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_popup_window_enter.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_popup_window_exit.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_slide_bottom.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_slide_left.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_slide_right.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/transition_slide_top.xml.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_arrays.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_attrs.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_attrs_car.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_attrs_manifest.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_bools.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_colors.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_colors_car.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_colors_device_defaults.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_colors_holo.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_colors_leanback.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_colors_legacy.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_colors_material.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_config.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_config.xml.orig.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_config_material.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_config_telephony.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_cross_profile_apps.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_dimens.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_dimens_car.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_dimens_leanback.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_dimens_material.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_disallowed_apps_managed_device.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_disallowed_apps_managed_profile.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_disallowed_apps_managed_user.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_donottranslate-cldr.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_donottranslate-maps.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_donottranslate-names.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_donottranslate.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_donottranslate_material.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_ids.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_integers.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_locale_config.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_policy_exempt_apps.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_public-final.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_public-staging.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_required_apps_managed_device.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_required_apps_managed_profile.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_required_apps_managed_user.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_strings.arsc.flat out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/values_styles.arsc.flat
out/host/linux-x86/bin/aapt2 compile -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res --pseudo-localize frameworks/base/core/res/res/raw/color_fade_frag.frag frameworks/base/core/res/res/raw/color_fade_vert.vert frameworks/base/core/res/res/raw/fallback_categories.csv frameworks/base/core/res/res/raw/fallbackring.ogg frameworks/base/core/res/res/raw/loaderror.html frameworks/base/core/res/res/raw/nodomain.html frameworks/base/core/res/res/raw-ar/loaderror.html frameworks/base/core/res/res/raw-ar/nodomain.html frameworks/base/core/res/res/raw-cs/loaderror.html frameworks/base/core/res/res/raw-cs/nodomain.html frameworks/base/core/res/res/raw-da/loaderror.html frameworks/base/core/res/res/raw-da/nodomain.html frameworks/base/core/res/res/raw-de/loaderror.html frameworks/base/core/res/res/raw-de/nodomain.html frameworks/base/core/res/res/raw-en-rGB/loaderror.html frameworks/base/core/res/res/raw-en-rGB/nodomain.html frameworks/base/core/res/res/raw-es/loaderror.html frameworks/base/core/res/res/raw-es/nodomain.html frameworks/base/core/res/res/raw-fi/loaderror.html frameworks/base/core/res/res/raw-fi/nodomain.html frameworks/base/core/res/res/raw-fr/loaderror.html frameworks/base/core/res/res/raw-fr/nodomain.html frameworks/base/core/res/res/raw-hu/loaderror.html frameworks/base/core/res/res/raw-hu/nodomain.html frameworks/base/core/res/res/raw-it/loaderror.html frameworks/base/core/res/res/raw-it/nodomain.html frameworks/base/core/res/res/raw-iw/loaderror.html frameworks/base/core/res/res/raw-iw/nodomain.html frameworks/base/core/res/res/raw-ja/loaderror.html frameworks/base/core/res/res/raw-ja/nodomain.html frameworks/base/core/res/res/raw-ko/loaderror.html frameworks/base/core/res/res/raw-ko/nodomain.html frameworks/base/core/res/res/raw-nl/loaderror.html frameworks/base/core/res/res/raw-nl/nodomain.html frameworks/base/core/res/res/raw-pl/loaderror.html frameworks/base/core/res/res/raw-pl/nodomain.html frameworks/base/core/res/res/raw-pt-rBR/loaderror.html frameworks/base/core/res/res/raw-pt-rBR/nodomain.html frameworks/base/core/res/res/raw-rm/loaderror.html frameworks/base/core/res/res/raw-rm/nodomain.html frameworks/base/core/res/res/raw-ru/loaderror.html frameworks/base/core/res/res/raw-ru/nodomain.html frameworks/base/core/res/res/raw-th/loaderror.html frameworks/base/core/res/res/raw-th/nodomain.html frameworks/base/core/res/res/raw-tr/loaderror.html frameworks/base/core/res/res/raw-tr/nodomain.html frameworks/base/core/res/res/raw-zh-rCN/loaderror.html frameworks/base/core/res/res/raw-zh-rCN/nodomain.html frameworks/base/core/res/res/raw-zh-rTW/loaderror.html frameworks/base/core/res/res/raw-zh-rTW/nodomain.html frameworks/base/core/res/res/transition/explode.xml frameworks/base/core/res/res/transition/fade.xml frameworks/base/core/res/res/transition/move.xml frameworks/base/core/res/res/transition/no_transition.xml frameworks/base/core/res/res/transition/popup_window_enter.xml frameworks/base/core/res/res/transition/popup_window_exit.xml frameworks/base/core/res/res/transition/slide_bottom.xml frameworks/base/core/res/res/transition/slide_left.xml frameworks/base/core/res/res/transition/slide_right.xml frameworks/base/core/res/res/transition/slide_top.xml frameworks/base/core/res/res/values/arrays.xml frameworks/base/core/res/res/values/attrs.xml frameworks/base/core/res/res/values/attrs_car.xml frameworks/base/core/res/res/values/attrs_manifest.xml frameworks/base/core/res/res/values/bools.xml frameworks/base/core/res/res/values/colors.xml frameworks/base/core/res/res/values/colors_car.xml frameworks/base/core/res/res/values/colors_device_defaults.xml frameworks/base/core/res/res/values/colors_holo.xml frameworks/base/core/res/res/values/colors_leanback.xml frameworks/base/core/res/res/values/colors_legacy.xml frameworks/base/core/res/res/values/colors_material.xml frameworks/base/core/res/res/values/config.xml frameworks/base/core/res/res/values/config.xml.orig frameworks/base/core/res/res/values/config_material.xml frameworks/base/core/res/res/values/config_telephony.xml frameworks/base/core/res/res/values/cross_profile_apps.xml frameworks/base/core/res/res/values/dimens.xml frameworks/base/core/res/res/values/dimens_car.xml frameworks/base/core/res/res/values/dimens_leanback.xml frameworks/base/core/res/res/values/dimens_material.xml frameworks/base/core/res/res/values/disallowed_apps_managed_device.xml frameworks/base/core/res/res/values/disallowed_apps_managed_profile.xml frameworks/base/core/res/res/values/disallowed_apps_managed_user.xml frameworks/base/core/res/res/values/donottranslate-cldr.xml frameworks/base/core/res/res/values/donottranslate-maps.xml frameworks/base/core/res/res/values/donottranslate-names.xml frameworks/base/core/res/res/values/donottranslate.xml frameworks/base/core/res/res/values/donottranslate_material.xml frameworks/base/core/res/res/values/ids.xml frameworks/base/core/res/res/values/integers.xml frameworks/base/core/res/res/values/locale_config.xml frameworks/base/core/res/res/values/policy_exempt_apps.xml frameworks/base/core/res/res/values/public-final.xml frameworks/base/core/res/res/values/public-staging.xml frameworks/base/core/res/res/values/required_apps_managed_device.xml frameworks/base/core/res/res/values/required_apps_managed_profile.xml frameworks/base/core/res/res/values/required_apps_managed_user.xml frameworks/base/core/res/res/values/strings.xml frameworks/base/core/res/res/values/styles.xml
error: invalid file path 'frameworks/base/core/res/res/values/config.xml.orig'.
[ 49% 25328/51107] //frameworks/base/core/res:framework-res aapt2 compile frameworks/base/core/res/res 47 [common]
ninja: build stopped: subcommand failed.
14:04:55 ninja failed with: exit status 1
[0;31m#### failed to build some targets (01:48:29 (hh:mm:ss)) ####[00m
The full log is attached in the attachment
Are you absolutely follow our user guide document, and also install all the packages needed?
Yes, but i had add some content about nfc reader PN7160 follow "AN13189-PN7160 Android porting guide"
Have you compile success without the PN7160?
Yes,compile success without the PN7160
I see that your error is as following, here can you try to delete the config.xml.orig to compile again to see if can still compile.
error: invalid file path 'frameworks/base/core/res/res/values/config.xml.orig'.