I am having issues when trying to build and use native library.
I am able to build the library but when I try to load it I get a runtime error :
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "random" referenced by..
I get this error only when in Application.mk I set APP_PLATFORM := android-21 and I run application on pre-21 devices (unfortunately I wasn't able to test on android-21 devices).
Otherwise if I use android-19 for APP_PLATFORM, I don't get any errors.
Other Application.mk settings:
APP_ABI := armeabi-v7a
APP_STL := gnustl_static
NDK_TOOLCHAIN_VERSION = 4.9
I use latest NDK windows revision (r10c) to build native library. I target latest android-21 everywhere else in the application (gradle build files).
I wonder if it is a bug, a known bug, and there already is a ticket for it.
Best