My android program has a class A, which has two static inner class. They are found to be stripped from .dex after applying proguard.>
Most of the top answers does the job but they are using wildcard (*;) for adding everything which is not the accurate answer. Below configuration only adds the fields and method properties to preserve inner class methods.
-keepattributes Exceptions,InnerClasses,Signature, ...
# preserve class and nested classes' fields and methods
-keep class com.abc.package.clazzes.** {
;
;
}