Add custom lib to APK

I am developing an Android application that uses native code.

I need to add my own external library to my APK lib folder for each build.

How can i do this?

Thank.

+4
source share
1 answer

Put the library in the path to the source library, the default is "libs" in the project folder.

If you created your own code for the 'armeabi' target, then put it under libs / armeabi. If it was built using armeabi-v7a, then put it under libs / armeabi-v7a.

<project>/libs/armeabi/libstuff.so
+6
source

All Articles