You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
运行项目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()
The text was updated successfully, but these errors were encountered:
如题所示:
我将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()
The text was updated successfully, but these errors were encountered: