I've been handling a response that has a large scale of fields particularly almost 7000 fields. I used robopojo to generate a data class out of it. Now i'am getting errors such as overflow so i have to lessen the fields. Eventually the error changed to this
04-15 14:25:19.823 17933-17933/com.example.cbc_appraisal D/androidruntime: java.lang.VerifyError: Rejecting class com.example.cbc_appraisal.model.revisedresponse.vacantlot.ValrepLandimpValuationGroupingItem because it failed compile-time verification (declaration of 'com.example.cbc_appraisal.model.revisedresponse.vacantlot.ValrepLandimpValuationGroupingItem' appears in /data/app/com.example.cbc_appraisal-1/base.apk:classes2.dex)
this is my code snip
@Parcelize data class ValrepLandimpValuationGroupingItem (
@field:SerializedName("valrep_landimp_dos_cml3_total_adjustment")
val valrepLandimpDosCml3TotalAdjustment: String? = null,
@field:SerializedName("valrep_landimp_dos_cml4_contact_no")
val valrepLandimpDosCml4ContactNo: String? = null,
@field:SerializedName("valrep_landimp_dos_dsl1_source")
val valrepLandimpDosDsl1Source: String? = null,
@field:SerializedName("valrep_landimp_dos_dsl3_source")
val valrepLandimpDosDsl3Source: String? = null,
... imagine 800 more
Im starting to think that kotlin cannot handle many fields. Any suggestion regarding this issue? thank you in advance!!