I want to use a pre-built shared library in AOSP. The library is defined in Android.mk like this:
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)
During build, a folder out/target/product/mako/obj/SHARED_LIBRARIES/foo_intermediates/export_include
was created.
However, the build failed with error message that out/target/product/mako/obj_arm/SHARED_LIBRARIES/foo_intermediates/export_include
cannot be found.
Note the difference between "obj" and "obj_arm". What caused the problem?