0

我正在使用这个 PDF 查看器,如果我使用他的目录,它可以完美运行,但是当我将它添加到我的项目时包含错误。

07-10 10:37:55.541: W/dalvikvm(8425): No implementation found for native Lcom/sdos/viewPDF/PDF;.parseFile (Ljava/lang/String;ILjava/lang/String;)I
07-10 10:37:55.551: D/AndroidRuntime(8425): Shutting down VM
07-10 10:37:55.571: W/dalvikvm(8425): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
07-10 10:37:55.601: E/AndroidRuntime(8425): FATAL EXCEPTION: main
07-10 10:37:55.601: E/AndroidRuntime(8425): java.lang.UnsatisfiedLinkError: parseFile
07-10 10:37:55.601: E/AndroidRuntime(8425):     at com.sdos.viewPDF.PDF.parseFile(Native Method)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at com.sdos.viewPDF.PDF.<init>(PDF.java:218)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at com.sdos.viewPDF.OpenFileActivity.getPDF(OpenFileActivity.java:532)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at com.sdos.viewPDF.OpenFileActivity.startPDF(OpenFileActivity.java:491)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at com.sdos.viewPDF.OpenFileActivity.onCreate(OpenFileActivity.java:208)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.os.Looper.loop(Looper.java:123)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at java.lang.reflect.Method.invokeNative(Native Method)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at java.lang.reflect.Method.invoke(Method.java:521)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-10 10:37:55.601: E/AndroidRuntime(8425):     at dalvik.system.NativeStart.main(Native Method)

我试图通过我自己的项目在 pdfview2.c 文件中更改旧目录,但仍然出现相同的错误。有什么解决办法??

谢谢!

4

1 回答 1

0

I guess it uses native functions, so you also need to include folder with native code to you project and build it using NDK.

于 2012-07-10T11:21:47.560 回答