在用Android自带数据库时遇到这个错误:

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

找了半天
原来是数据库里面变量名与Android所写的变量名不一致造成的

已解决—java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.


相关文章: