我有一个带有mupdf阅读器库的pdf阅读器项目,我有一个Android安装SDK,当我运行示例应用程序时,它显示sd卡内容列表,当我选择任何pdf时,我将在这里崩溃是日志。< / p>
12-20 11:57:57.512: E/AndroidRuntime(12750): FATAL EXCEPTION: main
12-20 11:57:57.512: E/AndroidRuntime(12750): java.lang.UnsatisfiedLinkError: Native method not found: com.artifex.mupdfdemo.MuPDFCore.openFile:(Ljava/lang/String;)J
12-20 11:57:57.512: E/AndroidRuntime(12750): at com.artifex.mupdfdemo.MuPDFCore.openFile(Native Method)
12-20 11:57:57.512: E/AndroidRuntime(12750): at com.artifex.mupdfdemo.MuPDFCore.<init>(MuPDFCore.java:70)
12-20 11:57:57.512: E/AndroidRuntime(12750): at com.artifex.mupdfdemo.MuPDFActivity.openFile(MuPDFActivity.java:216)
12-20 11:57:57.512: E/AndroidRuntime(12750): at com.artifex.mupdfdemo.MuPDFActivity.onCreate(MuPDFActivity.java:313)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.app.Activity.performCreate(Activity.java:5206)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1083)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.app.ActivityThread.access$600(ActivityThread.java:140)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.os.Handler.dispatchMessage(Handler.java:99)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.os.Looper.loop(Looper.java:137)
12-20 11:57:57.512: E/AndroidRuntime(12750): at android.app.ActivityThread.main(ActivityThread.java:4898)
12-20 11:57:57.512: E/AndroidRuntime(12750): at java.lang.reflect.Method.invokeNative(Native Method)
12-20 11:57:57.512: E/AndroidRuntime(12750): at java.lang.reflect.Method.invoke(Method.java:511)
12-20 11:57:57.512: E/AndroidRuntime(12750): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
12-20 11:57:57.512: E/AndroidRuntime(12750): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
12-20 11:57:57.512: E/AndroidRuntime(12750): at dalvik.system.NativeStart.main(Native Method)
请有人告诉我如何运行此应用程序
答案 0 :(得分:0)
查看此示例项目以使用文件管理器阅读PDF。
此应用程序使用MuPDF显示PDF文件以及使用其他库也显示图像并维护该应用程序的堆。
Steps来建立图书馆。
以下是显示PDf文件的其他类似项目,如下所示: