I have task to prepare realm db and then pack it to res dir in android project, but currently I have exception when I try to create RealmConfiguration:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no realm-jni in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at io.realm.internal.RealmCore.loadLibrary(RealmCore.java:69)
at io.realm.RealmConfiguration$Builder.<init>(RealmConfiguration.java:321)
at jujumedia.coffeeguide.PreBuildLoader.main(PreBuildLoader.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)