how to include prebuilt shared libraries in apk with eclipse

做~自己de王妃 提交于 2019-11-29 02:23:39

The include appears to be misspelt:

include $(PREBUILD_SHARED_LIBRARY)

should be

include $(PREBUILT_SHARED_LIBRARY)

Found the solution!! LOCAL_SRC_FILES can not have absolute or relative paths, just the filename. The path must be set in LOCAL_PATH.

So in my case, instead of:

LOCAL_SRC_FILES := $(FOO_PATH)/libfoo.so

I have now:

LOCAL_PATH := $(FOO_PATH)
LOCAL_SRC_FILES := libfoo.so

And this works ok.

In eclipse, i add a static library by copying the file in the path project/libs/armeabi/ and rebuild the project after cleaning it. This includes the .so in the apk.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!