You can use the pre-created NDK library by copying it to libs/armeabi
(or any other architecture) and then loading it at runtime. In terms of the Android build system, this is just another file to be included in the APK.
However, the problem is that JNI function names include, by convention, the name of the package and the class to which they will belong; therefore, from the point of view of the SO consumer project, its use will look rather unnatural, since none of the JNI functions will fit into its classes. You may have to send a JAR satellite where the corresponding Java classes are declared.
source share