问题
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