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

The proguard rule does not work on MI4 (Android 4.4) #123

Open
breezehou opened this issue Aug 21, 2018 · 0 comments
Open

The proguard rule does not work on MI4 (Android 4.4) #123

breezehou opened this issue Aug 21, 2018 · 0 comments

Comments

@breezehou
Copy link

If use the following rule, it will be crashed on Android 4.4:
-dontwarn icepick.** -keep class icepick.** { *; } -keep class **$$Icepick { *; } -keepclasseswithmembernames class * { @icepick.* <fields>; } -keepnames class * { @icepick.State *;}
Crash logs (I used apache commons lib in my project):
java.lang.NoSuchMethodError: org.apache.commons.lang3.StringUtils.a ... ...
If I removed <-keepnames class * { @Icepick.State *;}> line, it works, I don't know why.

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

1 participant