我正在通过 NDK 项目将共享对象文件包含到 Android OS 映像中。
android.mk 文件看起来像这样
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := Myaccessories
LOCAL_SRC_FILES := libMyaccessories.so
include $(PREBUILT_SHARED_LIBRARY)
我已将“libMyaccessories.so”添加到 android.mk 所在的 jni 文件夹中。在 ndk-built 上,它会导致错误,如下所示
Prebuilt : libMyaccessories.so <= jni/
Install : libMyaccessories.so => libs/armeabi/libMyaccessories.so
/home/Identive/Desktop/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-strip: Unable to recognise the format of the input file `./libs/armeabi/libMyaccessories.so'
make: *** [libs/armeabi/libMyaccessories.so] Error 1
我该如何解决这个问题?