java.lang.illegalstateException由:android.database.sqlite.sqlitecantopendatabaseexception cpection

发布于 2025-01-26 19:52:34 字数 2463 浏览 3 评论 0原文

我在Google Play控制台中遇到以下错误,也不知道如何解决。我在应用程序中不使用sqlite。该错误在以SDK 30为目标后开始出现。将库升级到最新库没有帮助。

java.lang.IllegalStateException: 
  at androidx.work.impl.utils.ForceStopRunnable.run (ForceStopRunnable.java:128)
  at androidx.work.impl.utils.SerialExecutor$Task.run (SerialExecutor.java:91)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
  at java.lang.Thread.run (Thread.java:761)
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: 
  at android.database.sqlite.SQLiteConnection.nativeOpen (Native Method)
  at android.database.sqlite.SQLiteConnection.open (SQLiteConnection.java:214)
  at android.database.sqlite.SQLiteConnection.open (SQLiteConnection.java:198)
  at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked (SQLiteConnectionPool.java:463)
  at android.database.sqlite.SQLiteConnectionPool.open (SQLiteConnectionPool.java:185)
  at android.database.sqlite.SQLiteConnectionPool.open (SQLiteConnectionPool.java:177)
  at android.database.sqlite.SQLiteDatabase.openInner (SQLiteDatabase.java:838)
  at android.database.sqlite.SQLiteDatabase.open (SQLiteDatabase.java:823)
  at android.database.sqlite.SQLiteDatabase.openDatabase (SQLiteDatabase.java:716)
  at android.app.ContextImpl.openOrCreateDatabase (ContextImpl.java:664)
  at android.content.ContextWrapper.openOrCreateDatabase (ContextWrapper.java:289)
  at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked (SQLiteOpenHelper.java:223)
  at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase (SQLiteOpenHelper.java:163)
  at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableSupportDatabase (FrameworkSQLiteOpenHelper.java:145)
  at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase (FrameworkSQLiteOpenHelper.java:106)
  at androidx.room.RoomDatabase.inTransaction (RoomDatabase.java:476)
  at androidx.room.RoomDatabase.assertNotSuspendingTransaction (RoomDatabase.java:281)
  at androidx.work.impl.model.SystemIdInfoDao_Impl.getWorkSpecIds (SystemIdInfoDao_Impl.java:120)
  at androidx.work.impl.background.systemjob.SystemJobScheduler.reconcileJobs (SystemJobScheduler.java:298)
  at androidx.work.impl.utils.ForceStopRunnable.cleanUp (ForceStopRunnable.java:249)
  at androidx.work.impl.utils.ForceStopRunnable.forceStopRunnable (ForceStopRunn

I m getting the following error in the google play console, and no idea how to solve it. I don't use SQLite in my app. The error started appearing after targeting SDK 30. Upgrading libraries to the latest has not helped.

java.lang.IllegalStateException: 
  at androidx.work.impl.utils.ForceStopRunnable.run (ForceStopRunnable.java:128)
  at androidx.work.impl.utils.SerialExecutor$Task.run (SerialExecutor.java:91)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
  at java.lang.Thread.run (Thread.java:761)
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: 
  at android.database.sqlite.SQLiteConnection.nativeOpen (Native Method)
  at android.database.sqlite.SQLiteConnection.open (SQLiteConnection.java:214)
  at android.database.sqlite.SQLiteConnection.open (SQLiteConnection.java:198)
  at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked (SQLiteConnectionPool.java:463)
  at android.database.sqlite.SQLiteConnectionPool.open (SQLiteConnectionPool.java:185)
  at android.database.sqlite.SQLiteConnectionPool.open (SQLiteConnectionPool.java:177)
  at android.database.sqlite.SQLiteDatabase.openInner (SQLiteDatabase.java:838)
  at android.database.sqlite.SQLiteDatabase.open (SQLiteDatabase.java:823)
  at android.database.sqlite.SQLiteDatabase.openDatabase (SQLiteDatabase.java:716)
  at android.app.ContextImpl.openOrCreateDatabase (ContextImpl.java:664)
  at android.content.ContextWrapper.openOrCreateDatabase (ContextWrapper.java:289)
  at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked (SQLiteOpenHelper.java:223)
  at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase (SQLiteOpenHelper.java:163)
  at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableSupportDatabase (FrameworkSQLiteOpenHelper.java:145)
  at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase (FrameworkSQLiteOpenHelper.java:106)
  at androidx.room.RoomDatabase.inTransaction (RoomDatabase.java:476)
  at androidx.room.RoomDatabase.assertNotSuspendingTransaction (RoomDatabase.java:281)
  at androidx.work.impl.model.SystemIdInfoDao_Impl.getWorkSpecIds (SystemIdInfoDao_Impl.java:120)
  at androidx.work.impl.background.systemjob.SystemJobScheduler.reconcileJobs (SystemJobScheduler.java:298)
  at androidx.work.impl.utils.ForceStopRunnable.cleanUp (ForceStopRunnable.java:249)
  at androidx.work.impl.utils.ForceStopRunnable.forceStopRunnable (ForceStopRunn

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

恰似旧人归 2025-02-02 19:52:34

看来这仍然是Androidx.Work的一个空缺问题,但应很快解决。
您可以在此处关注该问题: https://issuetracker.google.google.com/issues/issues/179160707

请确保启用通知: ”启用Issuetracker中的通知”

It seems that this is still an open issue with androidx.work but should soon be fixed.
You can follow the issue here: https://issuetracker.google.com/issues/179160707

Make sure to enable notifications: Enabling notifications in issuetracker

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文