首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heplshift错误: android.database.sqlite.SQLiteDiskIOException:磁盘I/O错误(代码1802)

Heplshift错误: android.database.sqlite.SQLiteDiskIOException:磁盘I/O错误(代码1802)
EN

Stack Overflow用户
提问于 2017-09-18 21:28:25
回答 1查看 668关注 0票数 3

我在我的应用程序中使用了helpshift,并捕捉到了这个崩溃。它发生在某些设备上,但不是所有设备。请帮我解决这个问题。

代码语言:javascript
复制
Fatal Exception: android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1802)
Error Code : 1802 (SQLITE_IOERR_FSTAT)
Caused By : Failed to get database file information with system call stat(). Please confirm whether database file has been removed.
(disk I/O error (code 1802))
   at android.database.sqlite.SQLiteConnection.nativeExecute(SQLiteConnection.java)
   at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:683)
   at android.database.sqlite.SQLiteSession.endTransactionUnchecked(SQLiteSession.java:437)
   at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:401)
   at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:527)
   at com.helpshift.storage.KeyValueDbStorage.set(KeyValueDbStorage.java:81)
   at com.helpshift.model.SdkInfoModel.setFirstLaunch(SdkInfoModel.java:141)
   at com.helpshift.campaigns.controllers.DeviceController.onBackground(DeviceController.java:300)
   at com.helpshift.app.MainLifecycleCallback$1.run(MainLifecycleCallback.java:44)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
   at java.lang.Thread.run(Thread.java:818)
EN

回答 1

Stack Overflow用户

发布于 2019-01-11 14:48:44

你需要打电话给

代码语言:javascript
复制
db = dbHelper.getWritableDatabase(); 

这在您的数据库类的构造函数中

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46280541

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档