集成MuPDF jar时的java.lang.ExceptionInInitializerError

时间:2013-07-26 12:15:03

标签: android mupdf

我正在尝试将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 Build Path中。你能告诉我如何解决这个问题吗? 谢谢。

0 个答案:

没有答案