Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate signed APK when proguard is enabled #8

Closed
zfc0812 opened this issue Dec 30, 2017 · 4 comments
Closed

Unable to generate signed APK when proguard is enabled #8

zfc0812 opened this issue Dec 30, 2017 · 4 comments

Comments

@zfc0812
Copy link

zfc0812 commented Dec 30, 2017

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?

@androidmads
Copy link
Owner

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

@zfc0812
Copy link
Author

zfc0812 commented Dec 31, 2017

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

@androidmads
Copy link
Owner

Thanks bro.

@lokeshsunhare
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants