Add a native lib to an APK

∥☆過路亽.° 提交于 2020-01-02 05:51:12

问题


I'm developing an Android application that uses native code.

I need to add an external native library to my APK's lib folder on every build.

How can I do that?

Thanks.


回答1:


Put the library in the native library path which defaults to "libs" in your project folder.

If you built the native code for the 'armeabi' target then put it under libs/armeabi. If it was built with armeabi-v7a then put it under libs/armeabi-v7a.

<project>/libs/armeabi/libstuff.so


来源:https://stackoverflow.com/questions/4365227/add-a-native-lib-to-an-apk

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