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

后端 未结 3 2062
别跟我提以往
别跟我提以往 2021-02-05 11:43

Getting null response but code 200 with Release APK when minify enable, when minify false then its ok.

But Getting expected response with debug APK when minify

3条回答
  •  盖世英雄少女心
    2021-02-05 11:55

    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. :)

提交回复
热议问题