Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.
Make sure the Cursor is initialized correctly before accessing data from it.
传入的键在数据库表中实际上不存在
解决方案:
一般问题出现的原因是键的名字拼写错误,设计数据库名字的时候使用一些final字符串防止拼写错误即可。
本文介绍了一种常见的数据库访问异常Causedby:java.lang.IllegalStateException: Couldn't read row0,col-1 from CursorWindow的问题及解决方案。通常由于键名拼写错误导致,建议使用final字符串预防此类错误。
Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.
Make sure the Cursor is initialized correctly before accessing data from it.
传入的键在数据库表中实际上不存在
解决方案:
一般问题出现的原因是键的名字拼写错误,设计数据库名字的时候使用一些final字符串防止拼写错误即可。
5760
1万+
3266
662
4470
1112

被折叠的 条评论
为什么被折叠?