android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 1806): , while compiling: PRAGMA journal_mode ################################################################# Error Code : 1806 (SQLITE_CANTOPEN_EACCES) Caused By : Application has no permission to open the specified database file. (unable to open database file (code 1806): , while compiling: PRAGMA journal_mode) #################################################################

Hot problem!
This exception has a lot of traffic. You can help 20 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by TruongHieu
, 1 year ago
################################################################# Error Code : 1806 (SQLITE_CANTOPEN_EACCES) Caused By : Application has no permission to open the
via Stack Overflow by Unknown author, 2 years ago
unable to open database file(Sqlite code 14): , while compiling: PRAGMA journal_mode,(OS error - 13:Permission denied)
via GitHub by iForests
, 1 year ago
unable to open database file (code 14): , while compiling: PRAGMA journal_mode
via Stack Overflow by msDead
, 1 month ago
unable to open database file (code 14): , while compiling: PRAGMA journal_mode
via Stack Overflow by Saraz
, 1 year ago
unable to open database file (code 14): , while compiling: PRAGMA journal_mode
via Stack Overflow by Mahesh
, 2 years ago
unable to open database file (code 14): , while compiling: PRAGMA journal_mode
android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 1806): , while compiling: PRAGMA journal_mode ################################################################# Error Code : 1806 (SQLITE_CANTOPEN_EACCES) Caused By : Application has no permission to open the specified database file. (unable to open database file (code 1806): , while compiling: PRAGMA journal_mode) #################################################################
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1058)
at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:762)
at android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:443)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:301)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:210)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:512)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:178)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:908)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:878)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:699)
at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:633)
at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:283)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223)
at net.truonghieu.modifysmsremoteroot.helper.DatabaseHandler.addSMS(DatabaseHandler.java:82)
at net.truonghieu.modifysmsremoteroot.MainActivity.onClick(MainActivity.java:42)
at android.view.View.performClick(View.java:5697)
at android.widget.TextView.performClick(TextView.java:10826)
at android.view.View$PerformClick.run(View.java:22526)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 times, 4 months ago
11 times, 10 months ago
2 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.