Error: java.lang.UnsatisfiedLinkError: dlopen failed: library "libnative-utils.so" not found

Hello, I am a student, and I am trying to build the deltachat-android app on my emulator for testing and improvement purposes. However, when I build the app on the emulator, it crashes immediately with the following error:

FATAL EXCEPTION: main
Process: com.b44t.messenger.beta, PID: 12396
java.lang.UnsatisfiedLinkError: dlopen failed: library “libnative-utils.so” not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
at java.lang.System.loadLibrary(System.java:1661)
at org.thoughtcrime.securesms.ApplicationContext.onCreate(ApplicationContext.java:86)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1316)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6998)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2236)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Does anyone have any suggestions on how to fix this issue?
Thank you!

2 Likes

seems you did not build the “rust core”, probably because the development environment was not set up completely and eg. ./scripts/ndk-make.sh was not executed successfully.

you have to follow all steps described in the README accordingly and exactly - “Build using Nix” seems to be the simplest one currently.

2 Likes