Fixes ProGuard options.

1. Dedup LOCAL_JAVA_LIBRARIES.
2. Even no resource or asset for a package, we still need to set
package_expected_intermediates_COMMON, which is anyway used by ProGuard.
diff --git a/core/package.mk b/core/package.mk
index 828f4c7..d92a8b8 100644
--- a/core/package.mk
+++ b/core/package.mk
@@ -92,6 +92,7 @@
 
 all_res_assets := $(strip $(all_assets) $(all_resources))
 
+package_expected_intermediates_COMMON := $(call local-intermediates-dir,COMMON)
 # If no assets or resources were found, clear the directory variables so
 # we don't try to build them.
 ifeq (,$(all_assets))
@@ -104,7 +105,6 @@
 # Make sure that R_file_stamp inherits the proper PRIVATE vars.
 # If R.stamp moves, be sure to update the framework makefile,
 # which has intimate knowledge of its location.
-package_expected_intermediates_COMMON := $(call local-intermediates-dir,COMMON)
 R_file_stamp := $(package_expected_intermediates_COMMON)/src/R.stamp
 LOCAL_INTERMEDIATE_TARGETS += $(R_file_stamp)
 endif