Android开发 mm编译 Android.mk添加第三方jar包

下面的例子,加了两个包,一个是gson,一个是androidannotations

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := gson androidannotations
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_PACKAGE_NAME := Update
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := gson:libs/gson-2.2.2.jar \
androidannotations:libs/androidannotations-api-2.7.jar
include $(BUILD_MULTI_PREBUILT)

LOCAL_STATIC_JAVA_LIBRARIES 是别名,可以随便取,与下面对应即可

© 2013, 冰冻鱼. 请尊重作者劳动成果,复制转载保留本站链接! 应用开发笔记

发表评论

电子邮件地址不会被公开。 必填项已用*标注