说明 最近的项目中使用了Gson作为json解析,在对kotlin中的enum对象解析toJson时Debug下一切正常,在Release混淆之后却出现NoSuchFieldException,百思不得姐。最终使用Google搜索到一篇文章得以解决 Gson Will Crash at Enum Fields When Enabling Proguard Recently we used Gson to convert data into JSON string and saved into Preference …