在proguard-project.txt文件中,配置:
-keepattributes Signature
# The "Signature" attribute is required to be able to access generic types whencompiling in JDK 5.0 and higher.
-keepattributes *Annotation*
# processing Annotations
引用的第三方jar包中,有些是包含注解的
参考:http://proguard.sourceforge.net/