开发者

Add a native lib to an APK

开发者 https://www.devze.com 2023-01-29 14:49 出处:网络
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.

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

精彩评论

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