开发者

Add a native lib to an APK

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开发者_C百科 I do that?

Thanks.


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜