我希望在AOSP中使用一个预构建的共享库。这个库在Android.mk中被定义如下:
include $(CLEAR_VARS)
LOCAL_MODULE := foo
LOCAL_MODULE_SUFFIX := .so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_TAG := optional
LOCAL_MODULE_PATH := system/lib
LOCAL_SRC_FILE := system/lib/foo.so
include $(BUILD_PREBUILT)
在构建过程中,创建了一个文件夹
out/target/product/mako/obj/SHARED_LIBRARIES/foo_intermediates/export_include
。但是,构建失败,并显示错误消息,说找不到out/target/product/mako/obj_arm/SHARED_LIBRARIES/foo_intermediates/export_include
。请注意"obj"和"obj_arm"之间的区别。是什么导致了问题?