platform_build/core/tasks
Devin Moore b9f1d73857 Merge "Add static_libs to module-info.json" am: b1bae84508 am: 32267a425f am: 4211e25233 am: bdce6803a2 am: 6c3a379a2e am: 522302a97e
Original change: https://android-review.googlesource.com/c/platform/build/+/2590127

Change-Id: I42eb674277960edbd79c9170faac98b6275286c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-06 19:44:39 +00:00
..
tools BUILD_NUMBER and BUILD_HOSTNAME doesn't affect kati regeneration 2023-05-22 22:42:07 +00:00
art-host-tests.mk Update art-host-tests build rule to support partial download 2023-03-09 00:16:25 +00:00
automotive-general-tests.mk
automotive-tests.mk
build_custom_images.mk
catbox.mk Revert "Add Traefed Contrib to CATBox" 2023-05-02 22:08:21 +00:00
csuite.mk
cts.mk Support collecting static code coverage data for all CTS-V APPs. 2023-02-22 15:31:36 +08:00
cts_root.mk
device-tests.mk Enable -sha256 feature to device-tests.zip 2023-02-17 17:48:24 +08:00
dex_preopt_check.mk
find-shareduid-violation.mk
general-tests.mk Revert "Revert "Enable -sha256 feature to some Soong built zip files"" 2023-02-14 00:29:30 +00:00
host-unit-tests.mk Revert "Revert "Enable -sha256 feature to some Soong built zip files"" 2023-02-14 00:29:30 +00:00
host_init_verifier.mk
ide.mk
module-info.mk Add static_libs to module-info.json 2023-06-05 20:17:50 +00:00
mts.mk
multitree.mk
oem_image.mk
owners.mk driveby: Fix typo 2023-02-24 19:34:25 +00:00
platform_availability_check.mk
README.dex_preopt_check.md
recovery_snapshot.mk
sdk-addon.mk BUILD_NUMBER and BUILD_HOSTNAME doesn't affect kati regeneration 2023-05-22 22:42:07 +00:00
sts-lite.mk Include JDK with STS SDK like the other *TS suites. 2023-01-18 23:02:31 +00:00
sts.mk
test_mapping.mk Don't read test mapping list in Make 2023-03-24 04:33:07 +00:00
tradefed-tests-list.mk
vendor_module_check.mk
vendor_snapshot.mk Revert "Define vendor-hwasan-snapshot target" 2023-01-02 16:07:43 +09:00
vndk.mk
vts-core-tests.mk
with-license.mk BUILD_NUMBER and BUILD_HOSTNAME doesn't affect kati regeneration 2023-05-22 22:42:07 +00:00
wvts.mk Resubmit: Initial add wvts to build 2023-01-11 00:55:50 +00:00

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.