Put this in both the proguard-project file and the proguard optimization file (if you are using optimization).
# Your application may contain more items that need to be preserved; # typically classes that are dynamically created using Class.forName: # ormlite uses reflection -keep class com.j256.** { *; } -keep class com.j256.** -keepclassmembers class com.j256.** -keep enum com.j256.** -keepclassmembers enum com.j256.** -keep interface com.j256.** -keepclassmembers interface com.j256.** -keepclassmembers class * { public <init>(android.content.Context); } -keepattributes *Annotation*
and for each model class:
-keep class com.xyz.components.** -keepclassmembers class com.xyz.components.** { *; }
I don't like the last part, but I'm tired of trying to find a better solution.
Frank source share