I had this issue, and the only thing that worked for me was putting
Thread.sleep(2000);
before the JNI library is loaded. This gave enough time for the debugger to attach before the call to System.loadLibrary crashed the app. Helped me to locate the problem C++ code.