作者:傻瑶叫一下来人fd_478 | 来源:互联网 | 2024-09-30 13:41
1将要使用的jar包放入App的根目录,即Android.mk所在目录2按如下方式编写Android.mk文件(########之间的行用于编译和使用jar包)LOCAL_PATH:$(ca
1 将要使用的jar包放入App的根目录, 即Android.mk所在目录
2 按如下方式编写Android.mk文件(########之间的行用于编译和使用jar包)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
#LOCAL_JAVA_LIBRARIES := telephony-common
################################################
LOCAL_STATIC_JAVA_LIBRARIES := xutils
################################################
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := AppStore
# Builds against the public SDK
#LOCAL_SDK_VERSION := current
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
##################################################
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := xutils:xUtils-2.6.11.jar
include $(BUILD_MULTI_PREBUILT)
##################################################
# This finds and builds the test apk as well, so a single make does both.
include $(call all-makefiles-under,$(LOCAL_PATH))