Skip to content

Commit 8b34ab4

Browse files
committed
libname changed to objectbox-jni
1 parent 570760e commit 8b34ab4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

objectbox-java/src/main/java/io/objectbox/internal/NativeLibraryLoader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
*/
3434
public class NativeLibraryLoader {
3535
static {
36-
String libname = "objectbox";
37-
String filename = "objectbox.so";
36+
String libname = "objectbox-jni";
37+
String filename = libname + ".so";
3838
boolean isLinux = false;
3939
// For Android, os.name is also "Linux", so we need an extra check
4040
// Is not completely reliable (e.g. Vivo devices), see workaround on load failure
@@ -72,7 +72,7 @@ public class NativeLibraryLoader {
7272
} catch (UnsatisfiedLinkError e) {
7373
if (!android && isLinux) {
7474
// maybe is Android, but check failed: try loading Android lib
75-
System.loadLibrary("objectbox");
75+
System.loadLibrary("objectbox-jni");
7676
} else {
7777
throw e;
7878
}

0 commit comments

Comments
 (0)