AVP force quits every time I open up a PDF file

169 views
Skip to first unread message

Bashevis

unread,
Sep 5, 2012, 9:52:56 PM9/5/12
to android-p...@googlegroups.com
I followed the instructions on the wiki for apv-0.3.3: chose pro version with python command, then used the current building method by running scripts/build_native.sh. No problems or errors yet.
Then I imported the project into eclipse from the folder pdfview. I had an error saying "The return type is incompatible with View.getRotation()", so I commented the getRotation() function in PagesView.java out. When I ran the project on the emulator, every time I opened a PDF I got the following error in LogCat:


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

How can I fix this?

Thanks!

wangninghb

unread,
Sep 6, 2012, 4:52:43 AM9/6/12
to android-pdf-viewer
"09-05 18:46:33.008: E/AndroidRuntime(1652): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load pdfview2: findLibrary returned null",You lose the pdfview2.so。You should compile the project so that you can get the so Or you can download the pdfView.apk and unzip it to get so 。Then put that in libs folder。I hope that will help you。 

Bashevis

unread,
Sep 6, 2012, 5:53:22 AM9/6/12
to android-p...@googlegroups.com, wangninghb
I actually already have the libpdfview2.so file in place after building following the wiki instructions. Where do I find the pdfview2.so? Is it in this apk?

Bashevis

unread,
Sep 6, 2012, 3:23:58 PM9/6/12
to android-p...@googlegroups.com, wangninghb
I don't see a pdfview2.so, I only see libpdfview2.so. Should I rename it then add it to my libs folder?
Screen Shot 2012-09-06 at 12.21.59 PM.png

sanjeev kumar

unread,
Feb 21, 2013, 5:25:50 AM2/21/13
to apv-pdf...@googlegroups.com, android-p...@googlegroups.com, wangninghb
This is my first ndk project.Facing the same problem .Please let me know how to solve it.

feng lin

unread,
Mar 10, 2013, 10:53:05 AM3/10/13
to apv-pdf...@googlegroups.com, android-p...@googlegroups.com
I meet it , I need answer from you~ please 

在 2012年9月6日星期四UTC+8上午9时52分56秒,Bashevis写道:
Reply all
Reply to author
Forward
0 new messages