Android 使用room报错here are multiple good constructors

编程入门 行业动态 更新时间:2024-10-22 19:29:20

\app\src\main\java\com\mw\app\demo\room\ProductVO.java:10: ����: There are multiple good constructors and Room will pick the no-arg constructor. You can use the @Ignore annotation to eliminate unwanted constructors.
public class ProductVO  {
       ^

大致提示:这里有多个好的构造器和房间将挑选无参数构造器

这一个警告,并不会编译失败, 你也可以跟据提示添加@Ignore 来指定忽视哪个构造,只留一个,就不会报错

更多推荐

Android 使用room报错here are multiple good constructors

本文发布于:2023-06-13 23:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1416081.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   room   Android   constructors   good

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!