我想在PlayStore上发布我的Android应用程序,在此之前我使用Proguard
混淆了我的APK。
没有混淆应用程序正常工作没有任何错误。
但是当我使用Proguard混淆创建APK时会出现以下错误:
09-22 12:29:45.246: E/SQLiteLog(11262): (5) database is locked
09-22 12:29:45.246: E/SQLiteDatabase(11262): Failed to open database '/data/data/com.test.testapp/databases/testapp_db'.
09-22 12:29:45.246: E/SQLiteDatabase(11262): android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode
09-22 12:29:45.246: E/SQLiteDatabase(11262): at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
09-22 12:29:45.246: E/SQLiteDatabase(11262): at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:882)
09-22 12:29:45.246: E/SQLiteDatabase(11262): at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:627)
09-22 12:29:45.246: E/SQLiteDatabase(11262): at android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:313)
有人知道我为什么会收到这个错误吗?
我还尝试过其他项目选项,例如-keep class
,-keepclasseswithmembernames
和-keep class * implements java.sql.Driver