我目前正在尝试使用Android.mk构建应用程序。该应用程序依赖于我已导出到.jar文件的Android库,该文件位于应用程序中。 libs文件夹。在构建应用程序之后,很明显图书馆'这些类没有包含在apk中 - 我做错了什么?
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := StaticLibrary
LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
LOCAL_RESOURCE_DIR += packages/apps/StaticLibrary/res
LOCAL_MANIFEST_FILE := AndroidManifest.xml
LOCAL_PACKAGE_NAME := CustomerService
LOCAL_CERTIFICATE := platform
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := StaticLibrary/staticlibrary.jar
include $(BUILD_MULTI_PREBUILT)