1

我正在尝试将 MuPDF jar 集成到我的项目中,但是在集成并运行我的应用程序后,我遇到了上述异常。这些是我在 logcat 中的崩溃日志:

07-26 16:26:18.608: W/dalvikvm(27233): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/artifex/mupdfdemo/MuPDFCore;

07-26 16:11:49.328: E/AndroidRuntime(25410): FATAL EXCEPTION: main
07-26 16:11:49.328: E/AndroidRuntime(25410): java.lang.ExceptionInInitializerError
07-26 16:11:49.328: E/AndroidRuntime(25410):    at com.artifex.mupdfdemo.MuPDFActivity.openFile(MuPDFActivity.java:209)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at com.artifex.mupdfdemo.MuPDFActivity.onCreate(MuPDFActivity.java:306)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.os.Looper.loop(Looper.java:123)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at android.app.ActivityThread.main(ActivityThread.java:3683)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at java.lang.reflect.Method.invokeNative(Native Method)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at java.lang.reflect.Method.invoke(Method.java:507)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at dalvik.system.NativeStart.main(Native Method)
07-26 16:11:49.328: E/AndroidRuntime(25410): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load mupdf: findLibrary returned null
07-26 16:11:49.328: E/AndroidRuntime(25410):    at java.lang.Runtime.loadLibrary(Runtime.java:429)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at java.lang.System.loadLibrary(System.java:554)
07-26 16:11:49.328: E/AndroidRuntime(25410):    at com.artifex.mupdfdemo.MuPDFCore.<clinit>(MuPDFCore.java:14)
07-26 16:11:49.328: E/AndroidRuntime(25410):    ... 15 more

我已将 mupdf_4.jar 放在我的 libs 文件夹中,并将其设置在 Java 构建路径中。你能告诉我如何解决这个问题吗?谢谢你。

4

0 回答 0