java - Android How do I use the same native library (.so) for multiple projects and classes? -


i making android project native code . running javah results in header files contain function prototypes qualified java class name in names. assume means functions , headers generated called java class used create them using javah.

how go on making native lib can use other classes other projects. made library has function want use in projects how build can use .so file each time without recompiling project. think call dynamic library?

is possible? or have create seperate jni headers each class , reuse remaining c/c++ code?

if want reuse native library various java projects, should directly bundle native library java class independent initial project.

this way you'll able distribute android library project, , use various classes , projects.


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -