当前位置:网站首页>更新GreenDAO实体类导致的编译错误

更新GreenDAO实体类导致的编译错误

2022-08-11 05:22:00 骑猪追大象

错误信息:

Error:Execution failed for task ‘:app:greendao’.
Constructor (see XXXBean:47) has been changed after generation.
Please either mark it with @Keep annotation instead of @Generated to keep it untouched,
or use @Generated (without hash) to allow to replace it.


解决方案:将构造函数的注释改成keep 或者 去掉@Generated的hash值(例如:)重新clean然后编译即可

原网站

版权声明
本文为[骑猪追大象]所创,转载请带上原文链接,感谢
https://blog.csdn.net/luzhenyuxfcy/article/details/115206994