In proguard, what is the keyword to preserve package/default access variables and methods?
问题 You can say: -keepclassmembers class sun.** { public protected *; } But I am not excluding package/default access methods :( void myMethod { } 回答1: You can add another -keepclassmembers like that: -keepclassmembers class com.mycompany.MyClass { !public !protected !private *; } 来源: https://stackoverflow.com/questions/26183906/in-proguard-what-is-the-keyword-to-preserve-package-default-access-variables-an