我正在使用这个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文件中通过我自己的项目更改旧目录,但仍然是同样的错误。任何解决方案??
谢谢!
答案 0 :(得分:0)
我猜它使用本机函数,因此您还需要包含本机代码的文件夹,并使用NDK进行构建。