Xamarin.Android 使用 SQLite 出现 Couldn't read row 0, col -1 from CursorWindow. 异常

异常:Java.Lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.

出现该问题一般分为两种情况:

1.请求的字段不在表中,可能是大小写没写对。(我就是Id写成id出现的错误)

2.字段类型不匹配。

posted @ 2018-07-24 16:19  没事儿写个bug  阅读(677)  评论(0编辑  收藏  举报