I am trying to integrate the debenu_quick_pdf_library_android_beta however I am running into issues. everytime I attempt to run my application it throws up the following error:
=============================================== 05-07 13:22:51.350: E/AndroidRuntime(21047): FATAL EXCEPTION: main 05-07 13:22:51.350: E/AndroidRuntime(21047): java.lang.ExceptionInInitializerError 05-07 13:22:51.350: E/AndroidRuntime(21047): at java.lang.Class.newInstanceImpl(Native Method) 05-07 13:22:51.350: E/AndroidRuntime(21047): at java.lang.Class.newInstance(Class.java:1319) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.app.Instrumentation.newActivity(Instrumentation.java:1071) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2295) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.app.ActivityThread.access$700(ActivityThread.java:150) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.os.Handler.dispatchMessage(Handler.java:99) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.os.Looper.loop(Looper.java:137) 05-07 13:22:51.350: E/AndroidRuntime(21047): at android.app.ActivityThread.main(ActivityThread.java:5279) 05-07 13:22:51.350: E/AndroidRuntime(21047): at java.lang.reflect.Method.invokeNative(Native Method) 05-07 13:22:51.350: E/AndroidRuntime(21047): at java.lang.reflect.Method.invoke(Method.java:511) 05-07 13:22:51.350: E/AndroidRuntime(21047): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) 05-07 13:22:51.350: E/AndroidRuntime(21047): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) 05-07 13:22:51.350: E/AndroidRuntime(21047): at dalvik.system.NativeStart.main(Native Method) 05-07 13:22:51.350: E/AndroidRuntime(21047): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1636): could not load library "liblibDebenuPDFLibraryAndroid" needed by "libmylib.so"; caused by load_library(linker.cpp:746): library "liblibDebenuPDFLibraryAndroid" not found 05-07 13:22:51.350: E/AndroidRuntime(21047): at java.lang.Runtime.loadLibrary(Runtime.java:371) 05-07 13:22:51.350: E/AndroidRuntime(21047): at java.lang.System.loadLibrary(System.java:535) 05-07 13:22:51.350: E/AndroidRuntime(21047): at com.mfsi.testintegration.MainActivity.<clinit>(MainActivity.java:20) 05-07 13:22:51.350: E/AndroidRuntime(21047): ... 15 more ======================================================
My Android.mk File is as follows:
-----------------------------------------Android.mk--------------------------------------------------- LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) LOCAL_MODULE := DebenuPDFLibraryAndroid LOCAL_SRC_FILES := libDebenuPDFLibraryAndroid.so include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS) LOCAL_MODULE := mylib LOCAL_SRC_FILES := DebenuPDFLibraryCPAndroidDynamicCPP.cpp integrator.cpp LOCAL_SHARED_LIBRARIES := DebenuPDFLibraryAndroid include $(BUILD_SHARED_LIBRARY) ------------------------------------------------------------------------------------------------------------
My Application.mk File is as follows:
------------------------------------Application.mk-------------------------------------------------------- APP_STL := gnustl_shared APP_ABI := armeabi-v7a APP_PLATFORM := android-15 ------------------------------------------------------------------------------------------------------------
Here is a drive link for the Snapshot of the Project Explorer where my project Can Be Viewed opened in the C/C++ Perspective: https://drive.google.com/file/d/0B1VHbc6HesQAb0dzR2RnQ1JiZzQ/view?usp=sharing
I am developing my application on Eclipse IDE
What is baffling is that liblibDebenuPDFLibraryAndroid is being searched while running the application. This name is not valid as the .so files created always are prefixed with a single 'lib'
I have included the following static block in my Android Launcher file MainActivity.java
static{ System.loadLibrary("DebenuPDFLibraryAndroid"); System.loadLibrary("mylib"); }
|