android - JNI: cannot find library in java.library.path when running JUnit -
i using junit test android program uses jni , depends on multiple .so files in same folder. when run unit tests call
system.loadlibrary("name") this statement throws following error:
unsatisfiedlinkererror: no libname in java.library.path based on answers other questions, decided try adding
-djava.library.path=path/to/libs as argument emulator. did not anything. had program print value of java.library.path, , included correct path library, somehow still threw unsatisfiedlinkerror. can conclude strange happening result of running junit, when run program (as android application), have no such errors. what's going on?
Comments
Post a Comment