yashwantkumargaurav / apv

Automatically exported from code.google.com/p/apv
GNU General Public License v3.0
0 stars 0 forks source link

java.lang.UnsatisfiedLinkError: Library pdfview2 not found #79

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?
open Simple Pdf in View.
Instead it crashed leading to force close alert dialog.no matter how simple the 
pdf is it irrespectively crashed. 

What version of the product are you using? On what operating system?
Samsung Galaxy 3 - Android 2.2 
Version Code 308 Version Name 0.3.1dev9

Please provide any additional information below.

11-16 11:41:37.008: E/AndroidRuntime(4629): FATAL EXCEPTION: main
11-16 11:41:37.008: E/AndroidRuntime(4629): 
java.lang.ExceptionInInitializerError
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
cx.hell.android.pdfview.OpenFileActivity.getPDF(OpenFileActivity.java:388)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
cx.hell.android.pdfview.OpenFileActivity.startPDF(OpenFileActivity.java:361)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
cx.hell.android.pdfview.OpenFileActivity.onCreate(OpenFileActivity.java:155)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.os.Looper.loop(Looper.java:123)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
android.app.ActivityThread.main(ActivityThread.java:4627)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
java.lang.reflect.Method.invokeNative(Native Method)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
java.lang.reflect.Method.invoke(Method.java:521)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
dalvik.system.NativeStart.main(Native Method)
11-16 11:41:37.008: E/AndroidRuntime(4629): Caused by: 
java.lang.UnsatisfiedLinkError: Library pdfview2 not found
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
java.lang.Runtime.loadLibrary(Runtime.java:461)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
java.lang.System.loadLibrary(System.java:557)
11-16 11:41:37.008: E/AndroidRuntime(4629):     at 
cx.hell.android.pdfview.PDF.<clinit>(PDF.java:15)

Original issue reported on code.google.com by mail2meo...@gmail.com on 16 Nov 2011 at 6:16

GoogleCodeExporter commented 8 years ago
Have you compile the native library?

Original comment by abun.sa...@gmail.com on 16 Nov 2011 at 10:28

GoogleCodeExporter commented 8 years ago
I havent worked with ndk before.. can u let me know how to compile the native 
library?

Original comment by mail2meo...@gmail.com on 16 Nov 2011 at 1:25

GoogleCodeExporter commented 8 years ago
Maybe you can explore 2 urls below
http://developer.android.com/sdk/ndk/overview.html
download the ndk from here:      http://developer.android.com/sdk/ndk/index.html
http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/

Original comment by abun.sa...@gmail.com on 16 Nov 2011 at 2:53

GoogleCodeExporter commented 8 years ago
Thanks for the links

Original comment by mail2meo...@gmail.com on 24 Nov 2011 at 6:50

GoogleCodeExporter commented 8 years ago
how to compile pdfview2 library so that eclipse will automatically append 
libpdfview2.so file into the <package>/lib folder

Original comment by abdulqad...@yahoo.com on 30 Nov 2011 at 11:12

GoogleCodeExporter commented 8 years ago
Maybe you can explore 2 urls
belowhttp://developer.android.com/sdk/ndk/overview.html
download the ndk from here:
http://developer.android.com/sdk/ndk/index.htmlhttp://mobile.tutsplus.com/tutori
als/android/ndk-tutorial/

Original comment by abun.sa...@gmail.com on 1 Dec 2011 at 4:53

GoogleCodeExporter commented 8 years ago
I have solve this problem without seeing above two url only with the help of 
Eclipse

Solution:-

1]Take any ndk example project 
2]On your project copy only one folder from above example project named-"libs" 
folder
  a]put your library file lib<related library>.so into libs folder
  b]For getting above library go to JNI->lib->armeabi->lib<related library>.so.
Your problem will be solved.

but thanx for reply also,but i have done it with my own.

Abdulqadir.Khanji 
MCA,India

Original comment by abdulqad...@yahoo.com on 1 Dec 2011 at 9:11

GoogleCodeExporter commented 8 years ago
You're welcome Abdulqadir.Khanji.
Glad you've the solution for the issue. :)

Original comment by abun.sa...@gmail.com on 1 Dec 2011 at 10:10

GoogleCodeExporter commented 8 years ago

Original comment by arpruss on 4 Dec 2011 at 11:29

GoogleCodeExporter commented 8 years ago
Trying to compile the so of APV lib.
Using win7, Eclipse Classic 3.7.1 Indigo, Cygwin and android-ndk-r7
Getting errors (Log attached)

Original comment by dan.shne...@gmail.com on 19 Feb 2012 at 1:04

Attachments: