【发布时间】:2016-10-18 17:20:15
【问题描述】:
我有两个要添加到 AOSP 的库: Azure Storage & Jackson Core
当 Azure 存储依赖于 Jackson。
在this instructions 之后,我将它们都添加到[MAIN_FOLDER]/external 下,并使用以下Android.mk 文件:
为了杰克逊 -
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := jackson
LOCAL_MODULE_TAGS := eng debug optional
LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
include $(BUILD_JAVA_LIBRARY)
对于 Azure 存储 -
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := azure-storage
LOCAL_JAVA_LIBRARIES := jackson
LOCAL_MODULE_TAGS := eng debug optional
LOCAL_SDK_VERSION := current
LOCAL_SRC_FILES := $(call all-java-files-under, src/main)
include $(BUILD_JAVA_LIBRARY)
当我也添加了:
PRODUCT_BOOT_JARS := \
jackson \
azure-storage
致我的core_minimal.mk。
以下内容发送至[MAIN_FOLDER]/frameworks/base/services/core/Android.mk:
LOCAL_JAVA_LIBRARIES += jackson azure-storage
唉,当我尝试make update-api && make时,
我收到以下错误:
错误:out/target/common/obj/JAVA_LIBRARIES/jackson_intermediates/classes.jar:类文件com/fasterxml/jackson/core/JsonLocation.class的未知包名
错误:out/target/common/obj/JAVA_LIBRARIES/azure-storage_intermediates/classes.jar:类文件 com/microsoft/azure/storage/CorsRule.class 的未知包名
make: *** [out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp] 错误 1
make: *** 等待未完成的工作......
谢谢!
【问题讨论】:
标签: java android android-source android.mk