android.database.sqlite.SQLiteDatabaseLockedException

database is locked (code 5): , while compiling: PRAGMA journal_mode

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web47

  • via GitHub by franzejr
    ,
  • Stack trace

    • android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1038) at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:783) at android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:469) at android.database.sqlite.SQLiteConnection.setWalModeFromConfiguration(SQLiteConnection.java:443) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:349) at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:229) at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:464) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:186) at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:178) at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:804) at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:789) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694) at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:990) at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:979) at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:222) at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:222)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    lribeirolribeiro
    2 times, last one
    brunosatrianibrunosatriani
    5 times, last one
    Ranjana DangolRanjana Dangol
    3 times, last one
    Diogo JaymDiogo Jaym
    2 times, last one
    bayukresnobayukresno
    3 times, last one
    15 more bugmates