How do you stop Proguard from removing type parameters?

According to the ProGuard Typical Library usage guide:

The “Signature” attribute is required to be able to access generic types when compiling in JDK 5.0 and higher.

Adding the following line fixed my issues with missing type parameters:

-keepattributes Signature

Leave a Comment