Retrofit 2 returns null in release APK when minifyenable but ok in debug APK

I had the same problem and my solution was to modify the 'protection rules' to exclude your class from obfuscation.

-keep public class com.your.packages.model.** {*;}

Problem solved :)

No issue with proguard-rules no need to add anything extra.

Needed to add SerializedName annotation if minifyEnabled even if variable name same as key.

That was the only Model which i had created manually :P

Which works fine in Debug but not after Signed in. :)