diff --git a/core/java.mk b/core/java.mk index 1835983aa..019b0551b 100644 --- a/core/java.mk +++ b/core/java.mk @@ -456,12 +456,14 @@ javac-check-$(LOCAL_MODULE) : $(full_classes_compiled_jar) my_desugaring := ifndef LOCAL_JACK_ENABLED ifeq ($(LOCAL_JAVA_LANGUAGE_VERSION),1.8) +ifndef LOCAL_IS_STATIC_JAVA_LIBRARY my_desugaring := true $(full_classes_desugar_jar): PRIVATE_DX_FLAGS := $(LOCAL_DX_FLAGS) $(full_classes_desugar_jar): $(full_classes_compiled_jar) $(DESUGAR) $(desugar-classes-jar) endif endif +endif ifndef my_desugaring full_classes_desugar_jar := $(full_classes_compiled_jar)