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

时间:2017-09-18 13:28:25

标签: android helpshift

我在我的应用程序中使用了helpshift并抓住了这个崩溃。 它发生在一些设备上,但不是全部。 请帮我解决这个崩溃。

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)

1 个答案:

答案 0 :(得分:0)

您需要致电

db = dbHelper.getWritableDatabase(); 

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