There was
-keep class com.actionbarsherlock.** { *; }
in my proguard config. As proposesd by the Actionbarsherlock guys (see http://actionbarsherlock.com/faq.html).
But only after adding
-keep public class * extends com.actionbarsherlock.app.SherlockFragment
the classes which extended SherlockFragment were kept and so I was able to use the Fragments.
Why?
Let’s assume you have the following fragment declaration, used in xml layout:
MyFragment class isn’t in
com.actionbarsherlock.*package, so ProGuard will obfuscate class name. In order to keep classes, which might be used in xml layout, add these parameters: