mupdf include native lib gradle
Asked Answered
C

1

6

I am trying to include mupdf in my Android application. I run the steps from http://dixitpatel.com/integrating-pdf-in-android-application/ without any problems. But when the app is starting it runs into the following error:

Process: app.main, PID: 9712
    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/app.main-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libmupdf.so"
            at java.lang.Runtime.loadLibrary(Runtime.java:366)
            at java.lang.System.loadLibrary(System.java:989)(MuPDFCore.java:14)

The "libmupdf.so" File is placed in the lib folder and I am using Android Studio with gralde.

I hope anyone can help me with that problem.

Cordwainer answered 29/6, 2015 at 10:7 Comment(0)
D
2
Duren answered 29/6, 2015 at 12:18 Comment(1)
I forgot the line in the gradle script. Thank you very much :-)Cordwainer

© 2022 - 2024 — McMap. All rights reserved.