droidapps / pdfreader4Android

PDF Reader -
https://droidapps.github.io/pdfreader4Android/
GNU General Public License v3.0
17 stars 8 forks source link

Cant run the app #5

Closed ShkurtiA closed 10 years ago

ShkurtiA commented 10 years ago

Hello, Thanks for sharing your code, I have a problem when i run the code. It gives me this in log cat:

09-24 20:19:01.075: E/AndroidRuntime(1050): FATAL EXCEPTION: main 09-24 20:19:01.075: E/AndroidRuntime(1050): java.lang.ExceptionInInitializerError 09-24 20:19:01.075: E/AndroidRuntime(1050): at io.github.droidapps.pdfreader.APVApplication.onCreate(APVApplication.java:13) 09-24 20:19:01.075: E/AndroidRuntime(1050): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:999) 09-24 20:19:01.075: E/AndroidRuntime(1050): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4151) 09-24 20:19:01.075: E/AndroidRuntime(1050): at android.app.ActivityThread.access$1300(ActivityThread.java:130) 09-24 20:19:01.075: E/AndroidRuntime(1050): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255) 09-24 20:19:01.075: E/AndroidRuntime(1050): at android.os.Handler.dispatchMessage(Handler.java:99) 09-24 20:19:01.075: E/AndroidRuntime(1050): at android.os.Looper.loop(Looper.java:137) 09-24 20:19:01.075: E/AndroidRuntime(1050): at android.app.ActivityThread.main(ActivityThread.java:4745) 09-24 20:19:01.075: E/AndroidRuntime(1050): at java.lang.reflect.Method.invokeNative(Native Method) 09-24 20:19:01.075: E/AndroidRuntime(1050): at java.lang.reflect.Method.invoke(Method.java:511) 09-24 20:19:01.075: E/AndroidRuntime(1050): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 09-24 20:19:01.075: E/AndroidRuntime(1050): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 09-24 20:19:01.075: E/AndroidRuntime(1050): at dalvik.system.NativeStart.main(Native Method) 09-24 20:19:01.075: E/AndroidRuntime(1050): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load apv: findLibrary returned null 09-24 20:19:01.075: E/AndroidRuntime(1050): at java.lang.Runtime.loadLibrary(Runtime.java:365) 09-24 20:19:01.075: E/AndroidRuntime(1050): at java.lang.System.loadLibrary(System.java:535) 09-24 20:19:01.075: E/AndroidRuntime(1050): at io.github.droidapps.lib.pdf.PDF.(PDF.java:67) 09-24 20:19:01.075: E/AndroidRuntime(1050): ... 13 more

How can i solve this problem?

Thanks

droidapps commented 10 years ago

How did you build the app?

ShkurtiA commented 10 years ago

I just imported the code on Eclipse and then I run the code. I didnt do any build, just using Eclipse.

droidapps commented 10 years ago

You need the NDK. If you are using Windows, you will also need Cygwin.

This might help you with setting up NDK for Eclipse.