Proper Proguard configuration to keep static inner class
问题 I have the following: public class A extends B { static class C { Object field1; int field2; boolean field3; } } I cannot get the C class via reflection! I've tried the following: -keep class com.path.to._class.A$** {*;} -keep class com.path.to._class.A$* {*;} -keep class com.path.to._class.A$C {*;} -keep class com.path.to._class.A$C { <fields>; } -keep class com.path.to._class.A$C { Object field1; int field2; boolean field3; } None of the above worked. Am I doing something completely wrong