记录: android编译环境下加入第三方jar

参考packeage/apps/Calculator/Android.mk的例子

LOCAL_STATIC_JAVA_LIBRARIES := libarity

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libarity:lily.jar 



详尽:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)


LOCAL_MODULE_TAGS := optional


LOCAL_STATIC_JAVA_LIBRARIES := libarity


LOCAL_SRC_FILES := $(call all-java-files-under, src)


LOCAL_SDK_VERSION := current


LOCAL_PACKAGE_NAME := Calculator


include $(BUILD_PACKAGE)
##################################################
include $(CLEAR_VARS)


LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libarity:arity-2.1.2.jar
include $(BUILD_MULTI_PREBUILT)


# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))






阅读更多
个人分类: android小笔记
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭