diff --git a/core/host_dalvik_java_library.mk b/core/host_dalvik_java_library.mk index 7bae6968c..43fc78033 100644 --- a/core/host_dalvik_java_library.mk +++ b/core/host_dalvik_java_library.mk @@ -134,7 +134,7 @@ $(full_classes_combined_jar): $(full_classes_compiled_jar) \ $(full_static_java_libs) | $(MERGE_ZIPS) $(if $(PRIVATE_JAR_MANIFEST), $(hide) sed -e "s/%BUILD_NUMBER%/$(BUILD_NUMBER_FROM_FILE)/" \ $(PRIVATE_JAR_MANIFEST) > $(dir $@)/manifest.mf) - $(MERGE_ZIPS) -j $(if $(PRIVATE_JAR_MANIFEST),-m $(dir $@)/manifest.mf) \ + $(MERGE_ZIPS) -j --ignore-duplicates $(if $(PRIVATE_JAR_MANIFEST),-m $(dir $@)/manifest.mf) \ $(if $(PRIVATE_DONT_DELETE_JAR_META_INF),,-stripDir META-INF -zipToNotStrip $<) \ $@ $< $(call reverse-list,$(PRIVATE_STATIC_JAVA_LIBRARIES)) diff --git a/core/host_java_library.mk b/core/host_java_library.mk index f34f2f140..c780d476f 100644 --- a/core/host_java_library.mk +++ b/core/host_java_library.mk @@ -99,7 +99,7 @@ $(full_classes_combined_jar): $(full_classes_compiled_jar) \ $(full_static_java_libs) | $(MERGE_ZIPS) $(if $(PRIVATE_JAR_MANIFEST), $(hide) sed -e "s/%BUILD_NUMBER%/$(BUILD_NUMBER_FROM_FILE)/" \ $(PRIVATE_JAR_MANIFEST) > $(dir $@)/manifest.mf) - $(MERGE_ZIPS) -j $(if $(PRIVATE_JAR_MANIFEST),-m $(dir $@)/manifest.mf) \ + $(MERGE_ZIPS) -j --ignore-duplicates $(if $(PRIVATE_JAR_MANIFEST),-m $(dir $@)/manifest.mf) \ -stripDir META-INF -zipToNotStrip $< $@ $< $(call reverse-list,$(PRIVATE_STATIC_JAVA_LIBRARIES)) # Run jarjar if necessary, otherwise just copy the file. diff --git a/core/java.mk b/core/java.mk index 2f0e3c368..6774b750c 100644 --- a/core/java.mk +++ b/core/java.mk @@ -517,7 +517,7 @@ $(full_classes_combined_jar): $(full_classes_compiled_jar) \ $(full_static_java_libs) | $(MERGE_ZIPS) $(if $(PRIVATE_JAR_MANIFEST), $(hide) sed -e "s/%BUILD_NUMBER%/$(BUILD_NUMBER_FROM_FILE)/" \ $(PRIVATE_JAR_MANIFEST) > $(dir $@)/manifest.mf) - $(MERGE_ZIPS) -j $(if $(PRIVATE_JAR_MANIFEST),-m $(dir $@)/manifest.mf) \ + $(MERGE_ZIPS) -j --ignore-duplicates $(if $(PRIVATE_JAR_MANIFEST),-m $(dir $@)/manifest.mf) \ $(if $(PRIVATE_DONT_DELETE_JAR_META_INF),,-stripDir META-INF -zipToNotStrip $<) \ $@ $< $(call reverse-list,$(PRIVATE_STATIC_JAVA_LIBRARIES))