Should I keep android.support.v4.app.Fragment and its derived classes when building a release version of my app?
问题 I read this answer and undestood why I should keep names of my services, activities, and custom views. But should I keep my classes which derive from android.support.v4.app.Fragment? I also took a look at the defualt Proguard config file %SDK_DIR%\sdk\tools\proguard\proguard-android.txt , and there were no rules regarding fragments. 回答1: The main reason why you would need to keep a class , is because it is accessed via reflection. Fragments are normally not accessed via reflection, so you don