question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load DLL 'mediapipe_jni' on Android build

See original GitHub issue

I am getting "Unable to load DLL ‘mediapipe_jni’ error in Android and there is no camera image. Is this error known issue? Can you tell how can i fix this?

DllNotFoundException: Unable to load DLL 'mediapipe_jni': The specified module could not be found. 03-20 14:12:51.801 14324 14340 E Unity : at Mediapipe.SafeNativeMethods.mp_api__ResetResourceManager (System.IntPtr resolverPtr, System.IntPtr handlerPtr) [0x00000] in <00000000000000000000000000000000>:0 03-20 14:12:51.801 14324 14340 E Unity : at Mediapipe.ResourceManager.Finalize () [0x00000] in <00000000000000000000000000000000>:0 03-20 14:12:51.801 14324 14340 E Unity : System.UnhandledExceptionEventHandler:Invoke(Object, UnhandledExceptionEventArgs) 03-20 14:12:51.801 14324 14340 E Unity : 03-20 14:12:51.801 14324 14340 E Unity : (Filename: currently not available on il2cpp Line: -1) 03-20 14:12:51.801 14324 14340 E Unity : 03-20 14:12:52.344 14324 14336 E Unity : NullReferenceException: Object reference not set to an instance of an object. 03-20 14:12:52.344 14324 14336 E Unity : at AssetBundleLoader.PrepareAsset (System.String name, System.String uniqueKey, System.Boolean overwrite) [0x00000] in <00000000000000000000000000000000>:0 03-20 14:12:52.344 14324 14336 E Unity : at DemoGraph.Initialize () [0x00000] in <00000000000000000000000000000000>:0 03-20 14:12:52.344 14324 14336 E Unity : at SceneDirector+<RunGraph>d__24.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 03-20 14:12:52.344 14324 14336 E Unity : at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
homulercommented, Jun 18, 2022

@portari Did you read https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#dllnotfoundexception?

  1. Native libraries are incompatible with your device ii. If it occurs on your Android device, maybe

First, you should check the error log (e.g. adb -s [device_id] logcat Unity:V native:V tflite:V CRASH:E AndroidRuntime:E "*:S") and identify the cause. See also https://github.com/homuler/MediaPipeUnityPlugin/issues/536#issuecomment-1105964717,

1reaction
homulercommented, Jun 16, 2022

@portari See https://github.com/homuler/MediaPipeUnityPlugin/issues/492#issuecomment-1072024773 and https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#dllnotfoundexception.

In your case, you should have built mediapipe_c.dll, but it doesn’t work on Android. To run the plugin on Android devices, you need to build mediapipe_android.aar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IL2CPP (android) build failing to load native library (DLL) ...
I'm getting the following error for my native library (libMyLibrary.so) but only on some devices: DllNotFoundException: Unable to load DLL.
Read more >
Unable to load DLL - SQLite3
Within my Unity Editor, all things working properly without any problem but when I execute the game build within Android device, ...
Read more >
"Could not start emulator" (unable to load DismApi.dll)
Start Android Device Manager from Tools menu, the ADM window opens, the default device for API 27 is selected and the Start button...
Read more >
[ARCore][Android][IL2CPP] DllNotFoundException: Unable to ...
[ARCore][Android][IL2CPP] DllNotFoundException: Unable to load DLL 'UnityARCore' error is thrown when project built to ARM64 ... Resolution Note:.
Read more >
Error Unity DllNotFoundException: Unable to load DLL ' ...
I have Load on startup enabled on libmediapipe_c.dll and opencv_world3410.dll. I have "Use GPU" marked as well when building for Android. I have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found