安卓E/CursorWindow: Failed to read row 0, column 0 from a CursorWindow which has 0 rows, 5 columns解决方案
来源:互联网 发布:mac apktool使用教程 编辑:程序博客网 时间:2024/05/18 00:46
使用SQLite数据库,建表插入数据后,使用Cursor读取时,发生以上错误,可见rows = 2,说明已经成功插入数据了,读的时候却说只有0 rows
后来发现自己的问题是插入表中数据过大的问题,我的表中有一个存放图片的BLOB类型,其实就是byte[],图片达到300多k时就会出现这个bug了,100多k没问题
我之前在网上找解决方案都找不到,感觉很多小伙伴可能遇到这个问题,如果报这个问题可以去检查看看是不是同样的错误哦!!或者是任何关于表字段的问题都有可能,建议可以删掉手机里的数据库文件新建一个再试试:
import java.io.File;File dirFile = new File(PATH);dirFile.delete();
或者清空表:
db.execSQL("delete from _table_name");
阅读全文
0 0
- 安卓E/CursorWindow: Failed to read row 0, column 0 from a CursorWindow which has 0 rows, 5 columns解决方案
- Android中出现:Failed to read row 0, column -1 from a CursorWindow which has 1 rows, 5 columns异常
- : Failed to read row 0, column -1 from a CursorWindow which has 1 rows, 9 columns.解决
- Android 数据库,解决Failed to read row 6, column -1 from a CursorWindow which has 11 rows, 14 columns.
- Failed to read row 0, column -1 from a CursorWindow which h
- IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.
- java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow
- Android SQLite 数据库 java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow异常
- java.lang.IllegalStateException: Couldn't read row 0, col 6 from CursorWindow异常
- java.lang.IllegalStateException: Couldn't read row 0, col 1 from CursorWindow.异常
- java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow异常
- 数据库Log之Couldn't read row 0, col -1 from CursorWindow
- Android示例java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.
- va.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor
- Couldn't read row 0, col -1 from CursorWindow, Cursor initialization error
- ExpandableListView异常Couldn't read row 0, col -1 from CursorWindow
- 已解决—java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.
- IllegalStateExceptio: Couldn't read row * from CursorWindow due to CursorWindow.nativeGetLong
- ubuntu环境下一键切换python虚拟环境
- 优先队列详解+ACM例题分析(转载)
- 【WebLogic使用】WebLogic的下载与安装
- EditText密码输入错误后重新获取焦点并自动弹出软键盘
- ueventd.rc 处理硬件设备权限和android init 对其解析
- 安卓E/CursorWindow: Failed to read row 0, column 0 from a CursorWindow which has 0 rows, 5 columns解决方案
- java小项目(文件读取)标准化考试
- NKOJ 2106 机密谍报 (并查集)
- redis简介
- 广义表
- 小白java笔记——UML介绍
- 2014-03-28-JDK环境变量配置
- 【esp8266】MCU下arduino uno添加LED开关代码示例
- js通过正表达式获取链接参数id