实体类先实现Serializable接口
然后把光标停在在实现类的上面,Alt+Enter,就有了
如果还是没有
设置下
File => Settings... => Inspections => Serialization issues => Serializable class without 'serialVersionUID'
实体类先实现Serializable接口
然后把光标停在在实现类的上面,Alt+Enter,就有了
如果还是没有
设置下
File => Settings... => Inspections => Serialization issues => Serializable class without 'serialVersionUID'
本文标题:Android Studio 自动生成 serialVersio
本文链接:https://www.haomeiwen.com/subject/jhqdwttx.html
网友评论