-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load DLL 'mediapipe_jni' on Android build #96
Comments
Will you tell me the steps to reproduce this issue? And please see #73 (comment) . |
yesterday update solved the issue. Thanks
#endif |
For me the problem was that Unity compiled for arm v7 but the plugin expected arm v8 64bit. fix was to configure arm64 in Unity Editor: |
You can also build for python build.py build --android arm -vv |
Actually I reencountered the above "Unable to load mediapipe_jni" error on specific android devices. While on my Samsung S6 and S7 devices the app works fine, it crashes on Motorola Z2
|
I tried your recommendation of compiling for armv7, but it didn't help, but rather lead to different errors:
when compiling with your master from Aug. 16th 2021. and
|
Correction: With the new master it works also on Motorola Z2 + arm64 |
@homuler I need help to understand something very simple, even if it seems obvious. I'm studying the MediaPipeUnityPlugin but I don't think I understand something correctly. I compiled on Windows10 for desktop CPU - and it worked just fine on Unity. I converted the Unity application to Android and generated the apk. When I install it on Android it doesn't work. So that I can run it on Android do I need to build it for Android or am I making a mistake in the Unity Player configuration? Sorry to ask in this thread, but I needed to get it working on Android and I'm new to both Unity and MediaPipe. Thanks in advance. [email protected] |
@portari See #492 (comment) and https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#dllnotfoundexception. In your case, you should have built |
Muito obrigado mesmo kkkk Thank you, so much! After fighting a bit with the versions of nuget on Linux, I managed to generate the version for Android, and joining with the dll generated on Windows previously, the plugin is working very well. I couldn't have done it without your help and your work. congratulations indeed. |
@homuler there's only one but still: I have a Samsung M62, which has a salad of processors: 4x 1.95 GHz Cortex-A55 + 2x 2.4 GHz Cortex-A75 + 2x 2.73 GHz M4 and Mali-G76 MP12 GPU, and when I opened the app, it open the camera and then close the app. I tested it on a Samsung S21 with 1x 2.9 GHz Cortex-X1 + 3x 2.8 GHz Cortex-A78 + 4x 2.2 GHz Cortex-A55 processors and Mali-G78 MP14 GPU and it worked fine. Now I'm looking if there's something to tweak to work on both, or mine at least. If you know anything that helps, I'd appreciate it. thanks for the attention. |
@portari Did you read https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#dllnotfoundexception?
First, you should check the error log (e.g. |
@portari If you need help, please build with Development Build enabled and create a new issue. |
@homuler I am so sorry for inconvenient. Thanks for the help. I'll do this. |
Should a Windows build be referencing mediapipe_jni? Unity is really messed up on its caching. I have upgraded to 2023.3 beta hoping for a previous fix where Android builds would not work due to some cache in a prior Windows Build. Now it is the opposite and I need to find what files to delete to get a Windows build to work (or go back to the Cloud build). But curious if this is the problem based on mediapipe_jni.dll missing? |
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
The text was updated successfully, but these errors were encountered: