diff --git a/core/package_internal.mk b/core/package_internal.mk index 64e9fe18f..25b484faf 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -89,6 +89,9 @@ endif include $(BUILD_SYSTEM)/force_aapt2.mk +# Process Support Library dependencies. +include $(BUILD_SYSTEM)/support_libraries.mk + package_resource_overlays := $(strip \ $(wildcard $(foreach dir, $(PRODUCT_PACKAGE_OVERLAYS), \ $(addprefix $(dir)/, $(LOCAL_RESOURCE_DIR)))) \ @@ -316,9 +319,6 @@ LOCAL_RESOURCE_DIR := $(data_binding_res_out) LOCAL_AAPT_FLAGS += --auto-add-overlay --extra-packages com.android.databinding.library endif # LOCAL_DATA_BINDING -# Process Support Library dependencies. -include $(BUILD_SYSTEM)/support_libraries.mk - # If the module is a compressed module, we don't pre-opt it because its final # installation location will be the data partition. ifdef LOCAL_COMPRESSED_MODULE diff --git a/core/static_java_library.mk b/core/static_java_library.mk index 2cd29f1b7..6eb94cd6e 100644 --- a/core/static_java_library.mk +++ b/core/static_java_library.mk @@ -28,15 +28,15 @@ intermediates.COMMON := $(call local-intermediates-dir,COMMON) my_res_package := +# Process Support Library dependencies. +include $(BUILD_SYSTEM)/support_libraries.mk + include $(BUILD_SYSTEM)/force_aapt2.mk ifdef LOCAL_AAPT2_ONLY LOCAL_USE_AAPT2 := true endif -# Process Support Library dependencies. -include $(BUILD_SYSTEM)/support_libraries.mk - # Hack to build static Java library with Android resource # See bug 5714516 all_resources :=