1.将libname.so拷贝到jni/prebuilt下,
2.在Android.mk文件下加入以下代码
#模块名 LOCAL_MODULE := smsiap #动态库路径 LOCAL_SRC_FILES := prebuilt/libsmsiap.so include $(PREBUILT_SHARED_LIBRARY)
3.clean重新编译
1.将libname.so拷贝到jni/prebuilt下,
2.在Android.mk文件下加入以下代码
#模块名 LOCAL_MODULE := smsiap #动态库路径 LOCAL_SRC_FILES := prebuilt/libsmsiap.so include $(PREBUILT_SHARED_LIBRARY)
3.clean重新编译
转载于:https://www.cnblogs.com/cc4coco/p/4235007.html