From 49d5923f6b998a8962068d7df70c2062f68089d4 Mon Sep 17 00:00:00 2001 From: "Rohit R. Sekhar" Date: Tue, 14 Feb 2023 07:03:26 +0100 Subject: [PATCH] Notes: Resolve check failure FAILED: out/target/common/obj/APPS/Notes_intermediates/enforce_uses_libraries.status /bin/bash -c "(rm -f out/target/common/obj/APPS/Notes_intermediates/enforce_uses_libraries.status ) && (build/soong/scripts/manifest_check.py --enforce-uses-libraries --enforce-uses-libraries-status out/target/common/obj/APPS/Notes_intermediates/enforce_uses_libraries.status --aapt out/host/linux-x86/bin/aapt prebuilts/prebuiltapks/Notes/app-release-unsigned.apk )" error: mismatch in the tags between the build system and the manifest: - required libraries in build system: [] vs. in the manifest: [] - optional libraries in build system: [] vs. in the manifest: [androidx.window.extensions, androidx.window.sidecar] - tags in the manifest (prebuilts/prebuiltapks/Notes/app-release-unsigned.apk): uses-library-not-required:'androidx.window.extensions' uses-library-not-required:'androidx.window.sidecar' note: the following options are available: - to temporarily disable the check on command line, rebuild with RELAX_USES_LIBRARY_CHECK=true (this will set compiler filter "verify" and disable AOT-compilation in dexpreopt) - to temporarily disable the check for the whole product, set PRODUCT_BROKEN_VERIFY_USES_LIBRARIES := true in the product makefiles - to fix the check, make build system properties coherent with the manifest - see build/make/Changes.md for details --- Notes/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Notes/Android.mk b/Notes/Android.mk index d497a2d..2320277 100644 --- a/Notes/Android.mk +++ b/Notes/Android.mk @@ -6,4 +6,8 @@ LOCAL_CERTIFICATE := platform LOCAL_SRC_FILES := app-release-unsigned.apk LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) +ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 31),) +LOCAL_OPTIONAL_USES_LIBRARIES := androidx.window.extensions \ + androidx.window.sidecar +endif include $(BUILD_PREBUILT) -- GitLab