欢迎投稿

今日深度:

Xamarin.Android 使用 SQLite 出现 Couldn't read row 0

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


异常: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.字段类型不匹配。

www.htsjk.Com true http://www.htsjk.com/SQLite/11418.html NewsArticle Xamarin.Android 使用 SQLite 出现 Couldnt read row 0, col -1 from CursorWindow. 异常,sqlitecursorwindow 异常:Java.Lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized co...
评论暂时关闭