Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

app crashes on startup #3

Closed
ronelgazar opened this issue Jun 5, 2020 · 12 comments
Closed

app crashes on startup #3

ronelgazar opened this issue Jun 5, 2020 · 12 comments

Comments

@ronelgazar
Copy link

Hi I have cloned your repository, and tried to run the example but the app crashed in the emulator with no errors

I'm new to flutter so i hope you can help me
Thanks in advance.

@ronelgazar
Copy link
Author

by the way great documentation

@zhouzaihang
Copy link
Owner

I suggest you use a real device for debugging. The simulator will always have some problems, even if no errors are reported

@ronelgazar
Copy link
Author

I just tried it on my real device it's the same result the app crashes.

@zhouzaihang
Copy link
Owner

Please confirm whether the size of the .aar file(flutter_hand_tracking_plugin/android/libs/hand_tracking_aar.aar) in your project exceeds 100MB, if only a few kb indicates that the .aar file you downloaded is incomplete

@ronelgazar
Copy link
Author

The size of the hand_tracking_aar.aar file is 103.21600 MB

@zhouzaihang
Copy link
Owner

Please provide the log of the program running.

@ronelgazar
Copy link
Author

image

@zhouzaihang
Copy link
Owner

I think the problem may be in flutter sdk:

flutter/flutter#35989

@ronelgazar
Copy link
Author

thank you i will check, for now i will leave the issue open

@ronelgazar
Copy link
Author

ronelgazar commented Jun 8, 2020

[ ] E/AndroidRuntime(29352): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/xyz.zhzh.flutter_hand_tracking_plugin_example-85Gsr80AchvFZfd26RsVNg==/base.apk"],nativeLibraryDirectories=[/data/app/xyz.zhzh.flutter_hand_tracking_plugin_example-85Gsr80AchvFZfd26RsVNg==/lib/x86_64, /data/app/xyz.zhzh.flutter_hand_tracking_plugin_example-85Gsr80AchvFZfd26RsVNg==/base.apk!/lib/x86_64, /system/lib64, /vendor/lib64]]] couldn't find "libmediapipe_jni.so"

i found the issue. where is the file libmediapipe_jni.so located ?

@sonsosad
Copy link

sonsosad commented Aug 4, 2021

@ronelgazar How did you fix this problem?

@ronelgazar
Copy link
Author

ronelgazar commented Jan 14, 2022

@sonsosad
A bit late 😅, I don't remember how I did it but it something along these lines

  1. reinstalled the hand_tracking.aar file properly using android studio
  2. Installed mediapipe on my pc in order find the libmediapipe_jeni.so and replaced the original one
  3. updated my flutter sdk (It was before null safety was introduced so I am not sure if it is relevant anymore)
  4. built a debug apk
  5. installed it on a physical device
  6. Done

Have a nice day and
I hope it is still relevant.

ronelgazar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants