2012-09-06 91 views
0

我按照apv-0.3.3的wiki的說明操作:選擇pro版本與python命令,然後通過運行scripts/build_native.sh使用當前構建方法。沒有問題或錯誤呢。 然後我將該項目從pdfview文件夾導入到eclipse中。我有一個錯誤,說「返回類型與View.getRotation()不兼容」,所以我評論了PagesView.java中的getRotation()函數。當我跑我每次打開一個PDF我在logcat中出現以下錯誤的時間在模擬器上的項目,:Android APV PDF閱讀器在打開時崩潰PDF

09-05 18:46:33.008: E/AndroidRuntime(1652): FATAL EXCEPTION: main 
09-05 18:46:33.008: E/AndroidRuntime(1652): java.lang.ExceptionInInitializerError 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at cx.hell.android.pdfviewpro.OpenFileActivity.getPDF(OpenFileActivity.java:541) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at cx.hell.android.pdfviewpro.OpenFileActivity.startPDF(OpenFileActivity.java:502) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at cx.hell.android.pdfviewpro.OpenFileActivity.onCreate(OpenFileActivity.java:219) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.app.Activity.performCreate(Activity.java:4465) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.app.ActivityThread.access$600(ActivityThread.java:123) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.os.Handler.dispatchMessage(Handler.java:99) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.os.Looper.loop(Looper.java:137) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at android.app.ActivityThread.main(ActivityThread.java:4424) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at java.lang.reflect.Method.invokeNative(Native Method) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at java.lang.reflect.Method.invoke(Method.java:511) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at dalvik.system.NativeStart.main(Native Method) 
09-05 18:46:33.008: E/AndroidRuntime(1652): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load pdfview2: findLibrary returned null 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at java.lang.Runtime.loadLibrary(Runtime.java:365) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at java.lang.System.loadLibrary(System.java:535) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  at cx.hell.android.lib.pdf.PDF.<clinit>(PDF.java:25) 
09-05 18:46:33.008: E/AndroidRuntime(1652):  ... 17 more 

我該如何解決這個問題?

謝謝!

回答

0

可能是有點晚

嘗試在包移動你PDF.Javacx.hell.android.lib.pdf