Android 解决attempt to acquire a reference on a close SQLiteClosable
来源:互联网 发布:邪器全集知乐 编辑:程序博客网 时间:2024/06/05 10:05
1、最基本的可能是操作不当,访问已经关闭的数据库,这中原因检查一下代码就能解决。
2、使用完Cursor后没有关闭。Cursor一定要使用完立刻关闭(我的就是这问题,项目前期就发现了当时没怎么在意,后来就只能加班改代码了)。
3、还有国外的朋友认为可能是Android会不定时的吧旧对象回收掉,每次操作数据库应该用新对象,而不要用就对象了(E文不好不知道对不对)。
http://stackoverflow.com/questions/1483629/exception-attempt-to-acquire-a-reference-on-a-close-sqliteclosable
0 0
- Android 解决attempt to acquire a reference on a close SQLiteClosable
- 解决Attempt to invoke virtual method '...ListAdapter'on a null object reference
- 解决Attempt to invoke virtual method '...ListAdapter'on a null object reference
- Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
- Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
- Attempt to invoke virtual method 'void android.app.ActionBar.hide()' on a null object reference
- Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference
- Attempt to invoke virtual method 'void android.app.ActionBar.hide()' on a null object reference
- Attempt to invoke virtual method 'void android.app.ActionBar.hide()' on a null object reference
- Attempt to read from field 'int android.graphics.Rect.bottom' on a null object reference
- Android开发中出现Attempt to invoke virtual method...on a null object reference
- [已解决] Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a n
- 解决java.lang.NullPointerException Attempt to read from field 'int android.view.View.mViewFlags' on a
- java.lang.NullPointerException:Attempt to invoke virtual method xxx on a null object reference
- 关于Attempt to invoke virtual method 'HSSFCell.getCellType(int)'' on a null object reference
- android “attempt to write a readonly database”出错解决
- android “attempt to write a readonly database”出错解决
- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resou
- Android 解决Android requires compiler compliance level 5.0 or 6.0. Found '1.7'
- Android TextView自动换行文字排版参差不齐的原因
- ROS学习笔记10 - 编写编译和检验Service Node
- Android 在代码中设置打开关闭GPS不必用户操作
- Android 获取手机IMEI
- Android 解决attempt to acquire a reference on a close SQLiteClosable
- Android 设置Dialog不允许返回或搜索键消除
- 我的博文
- Android 如何使用draw9patch,介绍的很详细,图文并茂,收藏下,备忘!
- Android SQLite中表自动生成字段的方法
- Android ScrollView与ListView一起(嵌套)使用解决ListView自动滚动的几点方案
- Linux 0.11下信号量的实现和应用
- Android 关于用JSONObject的new JSONObject(String s)构建含有特殊符号的字符串时报错的解决方案
- Android 解决Error generating final archive: Debug Certificate 问题