sujithcp / apdfviewer

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

Got Errors #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Attached LogCat file...

Do check it .. Is there any need to load poppler externally??

Original issue reported on code.google.com by moonsoft...@gmail.com on 30 Nov 2009 at 6:54

Attachments:

GoogleCodeExporter commented 8 years ago
You may need Android 1.6.

Original comment by liwenha...@gmail.com on 7 Dec 2009 at 2:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am getting another error on Android 1.6
Checkout Attachment

Original comment by moonsoft...@gmail.com on 2 Jan 2010 at 7:36

Attachments:

GoogleCodeExporter commented 8 years ago
I got the same erroe message.
I traced my log and found one exception is catched when PDFDocument try to load 
libpoppler_jni.so in line 105.
I found there is no libpoppler_jni.so in 
/data/data/com.googlecode.apdfviewer/lib/.
How can I fix this problem?
Thanks a lot.

Original comment by s704...@gmail.com on 26 Oct 2010 at 7:43

GoogleCodeExporter commented 8 years ago
Build libpoppler_jni.so first.

Original comment by liwenha...@gmail.com on 10 Jun 2011 at 4:21

GoogleCodeExporter commented 8 years ago
Android.mk inside jni, has 
LOCAL_STATIC_LIBRARIES +=   \
    libpoppler  

from where i can get libpoppler static library for android.
Actually, i build apdfviewer using android source, it throw error .. duplicate 
R.java, so i delete it from gen folder, and rebuild it, it builds. 
When i try to run apk, its throws error
D/dalvikvm( 7318): Trying to load lib 
/data/data/com.googlecode.apdfviewer/lib/libpoppler_jni.so 0x47e88f20
I/dalvikvm( 7318): Unable to 
dlopen(/data/data/com.googlecode.apdfviewer/lib/libpoppler_jni.so): Cannot load 
library: link_image[1995]: failed to link libpoppler_jni.so
I/dalvikvm( 7318): 
W/System.err( 7318): java.lang.UnsatisfiedLinkError: Library poppler_jni not 
found
W/System.err( 7318):    at java.lang.Runtime.loadLibrary(Runtime.java:461)
W/System.err( 7318):    at java.lang.System.loadLibrary(System.java:557)
W/System.err( 7318):    at 
com.googlecode.apdfviewer.PDFDocument.<clinit>(PDFDocument.java:105)
W/System.err( 7318):    at 
com.googlecode.apdfviewer.PDFView.openUri(PDFView.java:272)
W/System.err( 7318):    at 
com.googlecode.apdfviewer.PDFViewerActivity.onCreate(PDFViewerActivity.java:74)
W/System.err( 7318):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
W/System.err( 7318):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
W/System.err( 7318):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
W/System.err( 7318):    at 
android.app.ActivityThread.access$2300(ActivityThread.java:125)
W/System.err( 7318):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
W/System.err( 7318):    at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 7318):    at android.os.Looper.loop(Looper.java:123)
W/System.err( 7318):    at 
android.app.ActivityThread.main(ActivityThread.java:4627)
W/System.err( 7318):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 7318):    at java.lang.reflect.Method.invoke(Method.java:521)
W/System.err( 7318):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
W/System.err( 7318):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
W/System.err( 7318):    at dalvik.system.NativeStart.main(Native Method)
W/dalvikvm( 7318): No implementation found for native 
Lcom/googlecode/apdfviewer/PDFDocument;.native_init 
(Ljava/io/FileDescriptor;Ljava/lang/String;Ljava/lang/String;)I
D/AndroidRuntime( 7318): Shutting down VM
W/dalvikvm( 7318): threadid=1: thread exiting with uncaught exception 
(group=0x4001d7d0)
E/AndroidRuntime( 7318): FATAL EXCEPTION: main
E/AndroidRuntime( 7318): java.lang.UnsatisfiedLinkError: native_init
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFDocument.native_init(Native Method)
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFDocument.<init>(PDFDocument.java:41)
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFView.openUri(PDFView.java:272)
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFViewerActivity.onCreate(PDFViewerActivity.java:74)
E/AndroidRuntime( 7318):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime( 7318):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7318):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 7318):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 7318):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 7318):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime( 7318):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime( 7318):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 7318): *** KLAATU --1 
E/AndroidRuntime( 7318): java.lang.UnsatisfiedLinkError: native_init
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFDocument.native_init(Native Method)
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFDocument.<init>(PDFDocument.java:41)
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFView.openUri(PDFView.java:272)
E/AndroidRuntime( 7318):    at 
com.googlecode.apdfviewer.PDFViewerActivity.onCreate(PDFViewerActivity.java:74)
E/AndroidRuntime( 7318):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime( 7318):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7318):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 7318):    at 
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 7318):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 7318):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 7318):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime( 7318):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime( 7318):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 2504):   Force finishing activity 
com.googlecode.apdfviewer/.PDFViewerActivity

Original comment by tanwar.m...@gmail.com on 22 Jun 2011 at 8:08

Attachments: