Unable to load DLL 'mediapipe_jni' on Android build
See original GitHub issueI 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:
- Created 3 years ago
- Comments:14 (9 by maintainers)
Top GitHub Comments
@portari Did you read https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#dllnotfoundexception?
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,@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 buildmediapipe_android.aar
.