diff --git a/core/java_common.mk b/core/java_common.mk index 3a5c5c63c..c97653b7e 100644 --- a/core/java_common.mk +++ b/core/java_common.mk @@ -457,11 +457,11 @@ ALL_MODULES.$(my_register_name).INTERMEDIATE_SOURCE_DIR := \ ifndef LOCAL_IS_HOST_MODULE ifeq ($(LOCAL_SDK_VERSION),system_current) my_link_type := java:system -my_warn_types := java:platform +my_warn_types := my_allowed_types := java:sdk java:system java:core else ifneq (,$(call has-system-sdk-version,$(LOCAL_SDK_VERSION))) my_link_type := java:system -my_warn_types := java:platform +my_warn_types := my_allowed_types := java:sdk java:system java:core else ifeq ($(LOCAL_SDK_VERSION),core_current) my_link_type := java:core @@ -469,7 +469,7 @@ my_warn_types := my_allowed_types := java:core else ifneq ($(LOCAL_SDK_VERSION),) my_link_type := java:sdk -my_warn_types := java:system java:platform +my_warn_types := my_allowed_types := java:sdk java:core else my_link_type := java:platform