cordova - Android: Couldn't load mupdf -
i having (android studio - gradle) cordova (3.6.4) project.
in app there can list of pdf files should shown mupdf. following error message:
06-10 15:04:38.365 5940-5940/? e/androidruntime﹕ fatal exception: main process: de.dil.dsm, pid: 5940 java.lang.unsatisfiedlinkerror: couldn't load mupdf loader dalvik.system.pathclassloader[dexpathlist[[zip file "/data/app/de.dil.dsm-2.apk"],nativelibrarydirectories=[/data/app-lib/de.dil.dsm-2, /vendor/lib, /system/lib]]]: findlibrary returned null @ java.lang.runtime.loadlibrary(runtime.java:358) @ java.lang.system.loadlibrary(system.java:526) @ com.artifex.mupdfdemo.mupdfcore.<clinit>(mupdfcore.java:14) @ de.dil.dsm.dsm.loadfile(dsm.java:216) @ de.dil.dsm.xviewer$6.run(xviewer.java:102) @ android.os.handler.handlecallback(handler.java:733) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5001) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) @ dalvik.system.nativestart.main(native method)
the java files mupdf seems correctly imported.
it seems be, "just" "libmupdf.so" isn't correctly imported.
the libmupdf.so files in following directories:
- libs/armeabi/libmupdf.so
- libs/armeabi-v7a/libmupdf.so
there c mupdf file here: jni/mupdf.c
is there need configure in settings.gradle or in build.gradle?
thanks ahead!!!!
put .so files in
jnilibs
folder
>src >main >jnilibs >armeabi |libmupdf.so >armeabi-v7a |libmupdf.so
Comments
Post a Comment