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 是别名,可以随便取,与下面对应即可