android_build/core/tasks
Treehugger Robot 8ba52630ec Merge "Move the dist target of mke2fs to build/core/tasks" into main am: 4c068a1b67 am: 32a5ff42d5
Original change: https://android-review.googlesource.com/c/platform/build/+/3271533

Change-Id: Ib0b10e96a60ee209eb16b915b50b1acabfcc9136
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-23 03:10:34 +00:00
..
tools Merge "Move building bootloader/radio image task to proper place" into main am: c2b351babb am: f00af6db55 2024-09-12 07:43:41 +00:00
art-host-tests.mk Don't pack target tests into art-host-tests.zip. 2024-08-20 14:47:58 +00:00
art.mk Move clean-oat-host to build/core/tasks/art.mk 2024-06-13 02:09:35 +00:00
automotive-general-tests.mk
automotive-sdv-tests.mk Added automotive-sdv-tests 2024-04-08 11:16:46 +02:00
automotive-tests.mk
berberis_test.mk Move berberis tests to build/core/tasks 2024-04-02 02:43:48 +00:00
build_custom_images.mk
catbox.mk
csuite.mk
cts.mk Add cts-api-map report targets 2024-06-20 06:43:25 +00:00
cts_root.mk
device-platinum-tests.mk Patch zips makefile to properly use private variables 2024-05-23 11:55:47 -07:00
device-tests.mk Split out host shared libs target from device-tests 2024-09-19 12:05:06 -07:00
dex_preopt_check.mk
find-shareduid-violation.mk
fontchain_lint.mk Move fontchain_lint to build/core/tasks 2024-01-19 06:59:22 +00:00
general-tests-shared-libs.mk Split out host shared libs target from general-tests 2024-02-20 14:06:02 -08:00
general-tests.mk Reapply "Add soong installed files to general-tests.zip" 2024-06-02 07:21:37 -07:00
host-unit-tests.mk Link shared libs to per test module folder in host-unit-tests.zip 2024-07-12 20:58:37 +00:00
host_init_verifier.mk
mcts.mk For android-mcts-<module>.zip, we use mts-tradefed. 2024-07-23 08:38:47 +00:00
meta-lic.mk Move the creation of the root structure to build/core/main.mk 2024-09-10 06:51:10 +00:00
mke2fs-dist.mk Move the dist target of mke2fs to build/core/tasks 2024-09-19 07:20:46 +00:00
module-info.mk Revert "Revert "Add a coverage suffix to avoid Ninja file regene..." 2024-08-23 20:53:15 +00:00
mts.mk
multitree.mk
oem_image.mk
offline-sdk-docs.mk Move frameworks/base/Android.mk to build/core 2024-03-07 11:25:57 +00:00
owners.mk
performance-tests.mk Patch zips makefile to properly use private variables 2024-05-23 11:55:47 -07:00
platform_availability_check.mk
README.dex_preopt_check.md
sdk-addon.mk sdk-addon: Prevent nested data/ inside $(PRIVATE_STAGING_DIR) 2024-03-01 17:09:30 +05:30
sts-sdk.mk Move copy destination to "sts-sdk" 2024-09-04 23:07:02 +00:00
sts.mk
test_mapping.mk
tradefed-tests-list.mk Move COMPATIBILITY.tradefed_tests_dir to proper place 2024-08-29 14:46:50 +08:00
vendor_module_check.mk
vts-core-tests.mk linux-kselftest: Remove special cased build rule for kselftest 2023-09-15 22:49:17 +00:00
with-license.mk
wvts.mk

dex_preopt_check

dex_preopt_check is a build-time check to make sure that all system server jars are dexpreopted. When the check fails, you will see the following error message:

FAILED:
build/make/core/tasks/dex_preopt_check.mk:13: warning:  Missing compilation artifacts. Dexpreopting is not working for some system server jars
Offending entries:

Possible causes are:

  1. There is an APEX/SDK mismatch. (E.g., the APEX is built from source while the SDK is built from prebuilt.)

  2. The systemserverclasspath_fragment is not added as systemserverclasspath_fragments of the corresponding apex module, or not added as exported_systemserverclasspath_fragments of the corresponding prebuilt_apex/apex_set module when building from prebuilt.

  3. The expected version of the system server java library is not preferred. (E.g., the java_import module has prefer: false when building from prebuilt.)

  4. Dexpreopting is disabled for the system server java library. This can be due to various reasons including but not limited to:

    • The java library has dex_preopt: { enabled: false } in the Android.bp file.

    • The java library is listed in DEXPREOPT_DISABLED_MODULES in a Makefile.

    • The java library is missing installable: true in the Android.bp file when building from source.

    • Sanitizer is enabled.

  5. PRODUCT_SYSTEM_SERVER_JARS, PRODUCT_APEX_SYSTEM_SERVER_JARS, PRODUCT_STANDALONE_SYSTEM_SERVER_JARS, or PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS has an extra entry that is not needed by the product.