首页 > 解决方案 > 共享库位于 AOSP 的什么位置?

问题描述

我需要知道位于 aosp 中的共享库在哪里,因为在 Android.mk 文件中,我有 libnfc_tf_jni

LOCAL_JNI_SHARED_LIBRARIES := libnfc_tf_jni 

当我使用 mm 命令时,它会抛出一个错误

'out/host/linux-x86/bin/aapt', needed by 'out/target/product/sabresd_6dq/obj/APPS/Nfc_intermediates/package.apk', missing and no known rule to make it

通过添加 Android.mk 文件进行编辑:

LOCAL_PATH:= $(call my-dir)

########################################
# NCI Configuration
########################################
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_SRC_FILES := \
        $(call all-java-files-under, src)

LOCAL_SRC_FILES += \
        $(call all-java-files-under, tf)

LOCAL_PACKAGE_NAME := Nfc
LOCAL_CERTIFICATE := platform
LOCAL_STATIC_JAVA_LIBRARIES := NfcLogTags

LOCAL_JNI_SHARED_LIBRARIES := libnfc_tf_jni

LOCAL_PROGUARD_ENABLED := disabled

include $(BUILD_PACKAGE)

#####
# static lib for the log tags
#####
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := src/com/android/nfc/EventLogTags.logtags

LOCAL_MODULE:= NfcLogTags

include $(BUILD_STATIC_JAVA_LIBRARY)


include $(call all-makefiles-under,$(LOCAL_PATH))

libnfc-tf/Android.mk::

 LOCAL_PATH:= $(call my-dir)

# libnfc_tf

include $(CLEAR_VARS)

LOCAL_PRELINK_MODULE := false
LOCAL_ARM_MODE := arm

#phLibNfc
LOCAL_SRC_FILES := src/libnfc_tf.c
LOCAL_SRC_FILES += src/libnfc_tf_if.c
LOCAL_SRC_FILES += src/libnfc_tf_poll.c
LOCAL_SRC_FILES += src/libnfc_tf_hal.c
LOCAL_SRC_FILES += src/libnfc_tf_llcp.c
LOCAL_SRC_FILES += src/libnfc_tf_secure.c

LOCAL_CFLAGS += -DANDROID -pipe -fomit-frame-pointer -Wall -Wno-trigraphs -Werror-implicit-function-declaration  -fno-strict-aliasing -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -msoft-float -Uarm -fno-common -fpic

#debug option
#LOCAL_CFLAGS += -DDEBUG -D_DEBUG -DNFC_TF_DEBUG
#release option
#LOCAL_CFLAGS += -DNDEBUG

#includes
LOCAL_CFLAGS += -I$(LOCAL_PATH)/inc
#LOCAL_CFLAGS += -I$(LOCAL_PATH)/src

LOCAL_C_INCLUDES := external/openssl/include

LOCAL_MODULE:= libnfc_tf
LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := libcutils libdl liblog libcrypto

include $(BUILD_SHARED_LIBRARY)

标签: javaandroidandroid-source

解决方案


推荐阅读