java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/x2/rdkt6_6s26gcw0mjm9w9v9n80000gn/T/android-tmp-robolectric6998859355455526295/app_lib/librealm-jni.dylib

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

When installing an APK, it automatically extracts the libraries of the right arch type and has them available for System.loadLibrary. But, if you're trying to load a non-standard library, the installer won't know your app has 32bit native code.

Solutions on the web

via GitHub by LTroya
, 1 year ago
Can't load library: /var/folders/x2/rdkt6_6s26gcw0mjm9w9v9n80000gn/T/android-tmp-robolectric6998859355455526295/app_lib/librealm-jni.dylib
via GitHub by nikiJava
, 10 months ago
Can't load library: C:\Users\Nikita\AppData\Local\Temp\android-tmp-robolectric8414149647152901922\app_lib\realm-jni.dll
via Stack Overflow by Williams
, 9 months ago
Can't load library: C:\Users\XS~1\AppData\Local\Temp\android-tmp-robolectric7796034244909642596\app_lib\realm-jni.dll.2.3.1
via Server Fault by bjan
, 1 year ago
Can't load library: C:/Oracle/product/11.1.0/db_ 1;/oui/lib/win32/oraInstaller.dll
via Stack Overflow by Todd
, 2 years ago
Can't load library: D:\code\Animator\animator\out\artifacts\Animator_jar\gluegen-rt.dll
via vtkrishn.com by Unknown author, 1 year ago
Can't load library: /tmp/OraInstall2011-01-19_04-21-22PM/oui/lib/linux64/liboraInstaller.so
java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/x2/rdkt6_6s26gcw0mjm9w9v9n80000gn/T/android-tmp-robolectric6998859355455526295/app_lib/librealm-jni.dylib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.getkeepsafe.relinker.SystemLibraryLoader.loadPath(SystemLibraryLoader.java:29)
at com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal(ReLinkerInstance.java:200)
at com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary(ReLinkerInstance.java:140)
at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:70)
at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:51)
at io.realm.internal.RealmCore.loadLibrary(RealmCore.java:89)
at io.realm.RealmConfiguration$Builder.(RealmConfiguration.java:390)
at com.ltroya.movieindex.MovieIndexApp.initDB(MovieIndexApp.java:39)
at com.ltroya.movieindex.MovieIndexApp.onCreate(MovieIndexApp.java:35)
at org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:165)
at org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:423)
at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:254)
at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:191)
at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:56)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:157)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
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:497)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.