You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to generate signed APK when proguard is enabled #8
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
androidmads commentedon Dec 30, 2017
Add the following code in proguard
-keep public class org.apache.poi.** {*;}Let me know if you find any issues further
zfc0812 commentedon Dec 31, 2017
This is not working. I solved it by adding:
-dontwarn org.apache.poi.**androidmads commentedon Jan 1, 2018
Thanks bro.
lokeshsunhare commentedon Oct 30, 2021
use this code in proguard-rule.pro
-dontwarn java.awt.**