-
-
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
Error Unity DllNotFoundException: Unable to load DLL 'mediapipe_jni': The specified module could not be found. #171
Comments
What is your host machine (where you run UnityEditor)'s OS and which Android device do you use? adb logcat Unity:V native:V tflite:V CRASH:E AndroidRuntime:E "*:S" |
host machine: window 10 Full logs |
Logs you attached first (before editing) include the below line.
Can you confirm that your apk include |
I have library(mediapipe_android.aar) in my project(Packages/com.github.homuler.mediapipe/Runtime/Plugins/Android/mediapipe_android.aar) |
Hmm...if Can you investigate why the app cannot load When you try loading it manually and fail, you may have a chance to know the cause by reading error messages. |
I encountered problem when Load the Library follow the official example code(System.loadLibrary("mediapipe_jni");) ,but crashed due to the lack of "aligned_alloc" symbol. |
I had a similar issue to this, the cause seemed to be building Mediapipe 0.8.4 in a Unity project with a different package name e.g. com.testapp.app then importing it to another project where we wanted to change the package name to something like com.companyname.newappname. Mediapipe refused to work until we changed back the package name |
I also found this issue when trying to run the app on a Samsung S8 phone which had Android 8 installed, the issue was simply fixed when we updated the phone to Android 9. I am unsure if we should just target min sdk version 28 for android so only 9 and above which could cut off a lot of users. |
System information
Describe the problem
Please forgive me poor English~
I builded native android libraries in Docker container.
docker build -t mediapipe_unity:ubuntu . -f docker/linux/x86_64/Dockerfile.ubuntu
docker run -it --mount type=bind,src=$PWD/Packages,dst=/home/mediapipe/Packages mediapipe_unity:ubuntu
python build.py build --android arm64 -v
When i builded project and run the demo scene(DesktopDemo), I am getting the following error.
Error Unity DllNotFoundException: Unable to load DLL 'mediapipe_jni': The specified module could not be found.
Steps to reproduce the issue
Provide the exact sequence of commands / steps that you executed before running into the problem.
Full logs

aar location

Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: