标签:编译 UI 静态 参考 mon 文章 ram ++ lang
1,在源Android.mk里面加参数,使其编译为JAR包,然后mm编译
...
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
include $(BUILD_JAVA_LIBRARY)
...
..
LOCAL_STATIC_JAVA_LIBRARIES = xxx
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := xxx:libs/xxx.jar #实际目录
include $(BUILD_MULTI_PREBUILT)
...
LOCAL_JAVA_LIBRARIES := framework
...
LOCAL_MODULE := framework
include $(BUILD_JAVA_LIBRARY)
...
...
LOCAL_PACKAGE_NAME := framework-res
include $(BUILD_PACKAGE)
...
...
LOCAL_AAPT_FLAGS += --auto-add-overlay \
--extra-packages xxx
LOCAL_STATIC_JAVA_AAR_LIBRARIES:= xxx
...
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += xxx:libs/xxx.aar
include $(BUILD_MULTI_PREBUILT)
标签:编译 UI 静态 参考 mon 文章 ram ++ lang
原文地址:http://www.cnblogs.com/hcwl/p/6699592.html