Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级gradle后room报错 #30

Open
cjcj125125 opened this issue Mar 2, 2022 · 0 comments
Open

升级gradle后room报错 #30

cjcj125125 opened this issue Mar 2, 2022 · 0 comments

Comments

@cjcj125125
Copy link

如题所示:
我将kotlin-gradle-plugin升级到1.6.10
gradle-wrapper.properties 升级到gradle-6.5-all
com.android.tools.build:gradle 升级到4.1.2

运行项目room报错,耗时很久没能解决,还望指点,谢谢!错误如下:
The query returns some columns [curPage, offset, over, pageCount, size, total, datas] which are not used by java.lang.Object. You can use @ColumnInfo annotation on the fields to specify the mapping. You can annotate the method with @RewriteQueriesToDropUnusedColumns to direct Room to rewrite your query to avoid fetching unused columns. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: curPage, offset, over, pageCount, size, total, datas. Fields in java.lang.Object: .
public abstract java.lang.Object getHomeList(int page, @org.jetbrains.annotations.NotNull()

微信截图_20220302175022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant