Skip to content

Unable to generate signed APK when proguard is enabled #8

Closed

Description

@zfc0812

Thanks for this great SQlite2XL library. However, this library is causing signed APK unable to be generated when proguard is enable. Here are some lines of warning:

Warning:org.apache.poi.hssf.usermodel.DummyGraphics2d: can't find superclass or interface java.awt.Graphics2D
Warning:org.apache.poi.hssf.usermodel.EscherGraphics: can't find superclass or interface java.awt.Graphics
Warning:org.apache.poi.hssf.usermodel.EscherGraphics2d: can't find superclass or interface java.awt.Graphics2D

I tried to add -keep class java.awt.** { *; } to my proguard but this is still not working. How to solve this problem?

Activity

  1. androidmads commented on Dec 30, 2017

    @androidmads
    Owner

    Add the following code in proguard
    -keep public class org.apache.poi.** {*;}
    Let me know if you find any issues further

  2. zfc0812 commented on Dec 31, 2017

    @zfc0812
    Author

    This is not working. I solved it by adding:
    -dontwarn org.apache.poi.**

  3. androidmads commented on Jan 1, 2018

    @androidmads
    Owner

    Thanks bro.

  4. lokeshsunhare commented on Oct 30, 2021

    @lokeshsunhare

    use this code in proguard-rule.pro
    -dontwarn java.awt.**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions