Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5759 Reply

    coder

    Hi,
    i tried your framework on my android project.
    – everything is fine. it works well when i deploy the project from eclipse to phone.
    – i made a build with proguard is active.
    then i installed the apk to my android phone.
    while the pdf opens it crashes. i didn’t buy the license yet. is it because of license? or is there any adjustment for proguard?
    if it is related with license and if it runs with pro guard is active, i will buy the license.
    i tested everything, I’m not sure about proguard. please help me.

    crittercism crash report:
    java.lang.RuntimeException: Unable to start activity ComponentInfo{eu.abc.abcdef/eu.abc.abcdef.PdfReaderActivity}: java.lang.NullPointerException
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386)
    at android.app.ActivityThread.access$900(ActivityThread.java:169)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5476)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.NullPointerException
    at com.logdog.Worker.Worker.PrintLog(Worker.java:148)
    at com.logdog.LogDog.Print(LogDog.java:75)
    at eu.abc.abcdef.PdfReaderActivity$1.testSetFieldState(PdfReaderActivity.java:100)

    i tried the following proguard:
    -keep class com.epapyrus.** {*;}
    -dontwarn com.epapyrus.*
    -keep class com.logdog.** {*;}
    -dontwarn com.logdog.*

    thanks…

    #5760 Reply

    Dr. Plug
    Moderator

    Hi there,

    Thanks very much for your interest and feedback. Thanks for submitting your report, we will quickly take a look and then reach out to you with a remedy as soon as we can.

    Thanks again,

    Dr. Plug

    #5761 Reply

    Alex Black

    I had a bunch of trouble with PlugPDF and ProGuard, here is the config that works for me:

    -dontwarn javax.management.**
    -dontwarn javax.xml.**
    -dontwarn com.google.gson.**
    -keep class com.epapyrus.plugpdf.core.** { *; }
    -keep class com.logdog.** { *; }
    -dontwarn fi.harism.**
    # SimpleXML
    -keep class org.simpleframework.** { *; }
    -keepattributes Signature, *Annotation*

    #5764 Reply

    coder

    Thanks, Alex.
    it worked.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Crash when Proguard is active
Your information: