错误提示:
MS:Error: Cannot load library: link_image[1936]: 2332 could not load needed library './obj/local/armeabi/libxxx.so' for 'libtest.cy.so' (load_library[1091]: Library './obj/local/armeabi/libxxx.so' not found)
我已经在ndk代码中引入libxxx.so',并且已经成功自动添加工程libs/armeabi
引入so的mk文件内容如下:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libxxx
LOCAL_SRC_FILES :=libxxx.so
include $(PREBUILT_SHARED_LIBRARY)
JNI根目录mk文件如下:
TOP_LOCAL_PATH :=$(call my-dir)
include $(call all-subdir-makefiles)
LOCAL_PATH := $(TOP_LOCAL_PATH)
include $(CLEAR_VARS)
LOCAL_MODULE:= test.cy
LOCAL_SHARED_LIBRARIES := \
libxxx \
LOCAL_SRC_FILES := main.cpp
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)