net.sqlcipher.database.SQLiteException

file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;

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 web30

  • via GitHub by girishcsed
    ,
  • Stack trace

    • net.sqlcipher.database.SQLiteException: file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master; at net.sqlcipher.database.SQLiteCompiledSql.native_compile(Native Method) at net.sqlcipher.database.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91) at net.sqlcipher.database.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:64) at net.sqlcipher.database.SQLiteProgram.<init>(SQLiteProgram.java:83) at net.sqlcipher.database.SQLiteQuery.<init>(SQLiteQuery.java:49) at net.sqlcipher.database.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42) at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1772) at net.sqlcipher.database.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1737) at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2354) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1101) at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:993) at net.sqlcipher.database.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:249) at net.zetetic.tests.ReadableWritableInvalidPasswordTest.execute(ReadableWritableInvalidPasswordTest.java:81) at net.zetetic.tests.SQLCipherTest.run(SQLCipherTest.java:35) at net.zetetic.tests.TestSuiteRunner.runSuite(TestSuiteRunner.java:40) at net.zetetic.tests.TestSuiteRunner.doInBackground(TestSuiteRunner.java:20) at net.zetetic.tests.TestSuiteRunner.doInBackground(TestSuiteRunner.java:12) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 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)

    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

    Unknown visitor
    Unknown visitorOnce,
    ivotje50ivotje50
    Once,
    Unknown visitor
    Unknown visitorOnce,