Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11895 Reply

    Jade

    Hi
    I want to plugpdf project and mySample project Build by Make file(Not unsing Eclipse/Android Studio)
    build and after run application, Occur UnsatisfiedLinkError
    ========================================
    03-30 19:37:05.950: E/AndroidRuntime(5505): java.lang.UnsatisfiedLinkError:
    Couldn’t load plugpdf from loader dalvik.system.PathClassLoader[DexPathList[[zip file “/system/app/Manual.apk”],
    nativeLibraryDirectories=[/data/app-lib/com.mobilus.manual-2, /vendor/lib, /system/lib]]]: findLibrary returned null
    03-30 19:37:05.950: E/AndroidRuntime(5505): at java.lang.Runtime.loadLibrary(Runtime.java:358)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at java.lang.System.loadLibrary(System.java:526)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at com.epapyrus.plugpdf.core.PlugPDF.init(PlugPDF.java:74)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at com.mobilus.manual.MainActivity.onCreate(MainActivity.java:62)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.app.Activity.performCreate(Activity.java:5232)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.app.ActivityThread.access$800(ActivityThread.java:135)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.os.Handler.dispatchMessage(Handler.java:102)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.os.Looper.loop(Looper.java:136)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at android.app.ActivityThread.main(ActivityThread.java:5017)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at java.lang.reflect.Method.invokeNative(Native Method)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at java.lang.reflect.Method.invoke(Method.java:515)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:655)
    03-30 19:37:05.950: E/AndroidRuntime(5505): at dalvik.system.NativeStart.main(Native Method)
    ================================================
    Plugpdf project library located in projectFolder/libs/armeabi-v7a/libplugpdf.so, projectFolder/libs/plugpdfcore.jar
    And
    This is PluPdfLib Project Make file
    ================================================
    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)
    LOCAL_MODULE_TAGS := optional
    LOCAL_PROGUARD_ENABLED := disabled
    LOCAL_STATIC_JAVA_LIBRARIES := libplugpdfcore
    LOCAL_MODULE := com.epapyrus.plugpdf
    REQUIRED_MODULE := libplugpdf
    #LOCAL_REQUIRED_MODULES := libplugpdf
    LOCAL_CERTIFICATE := platform
    LOCAL_SRC_FILES := $(call all-java-files-under, src)
    LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res

    include $(BUILD_STATIC_JAVA_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libplugpdfcore:/libs/plugpdfcore.jar
    include $(BUILD_MULTI_PREBUILT)

    include $(CLEAR_VARS)
    LOCAL_MODULE := libplugpdf
    LOCAL_MODULE_SUFFIX := .so
    TARGET_ARCH_ABI := armeabi-v7a
    LOCAL_MODULE_CLASS := SHARED_LIBRARIES
    LOCAL_MODULE_TAGS := optional
    LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libplugpdf.so
    include $(BUILD_PREBUILT)
    ================================================

    This is my Sample Project Make file(Use plugpdf project)

    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)

    LOCAL_MODULE_TAGS := optional

    LOCAL_STATIC_JAVA_LIBRARIES := com.epapyrus.plugpdf

    #LOCAL_SRC_FILES := $(call all-java-files-under, src)
    LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res
    LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../../frameworks/java/source/android/res
    LOCAL_SRC_FILES := $(call all-java-files-under, src)
    LOCAL_AAPT_FLAGS := –auto-add-overlay
    LOCAL_AAPT_FLAGS += –extra-packages com.example.hueinterface

    LOCAL_PACKAGE_NAME := Manual
    LOCAL_PROGUARD_ENABLED := disabled
    LOCAL_PROGUARD_FLAG_FILES := proguard.flags
    LOCAL_SHARED_LIBRARIES := com.epapyrus.plugpdf
    include $(BUILD_PACKAGE)

    #11898 Reply

    Dr. Plug
    Moderator

    Hello Jade,

    Thank you for your inquiry.
    It looks like you are not finding any files in your project.
    Can you send us a reproducible sample project to support@plugpdf.com?

    Best regards,

    Dr.Plug
    PlugPDF Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: plugpdf using Make build, UnsatisfiedLinkError Error
Your information: