美文网首页
2018-08-01 GreenDao 使用报错

2018-08-01 GreenDao 使用报错

作者: 马克_唐卡 | 来源:发表于2018-08-01 16:50 被阅读0次

GreenDao 使用报错 If you would like to keep it, it should be explicitly marked with @Keep annotation. Otherwise please mark it with @Generated annotation

原因产生:在只有一个bean类的时候make 项目是可以的。然后增加了一个新的bean类后就出现这个错误。

解决方案之一:在根据提示,在构造方法中添加注解@Generated,然后重新再make一下项目即可,make之后会在@Generated注解生产一个哈希值。

相关文章

网友评论

      本文标题:2018-08-01 GreenDao 使用报错

      本文链接:https://www.haomeiwen.com/subject/bwyrvftx.html