Crash after upgrade from FDroid from 1.0-alpha or 1.0-beta



  • W/dalvikvm( 8555): threadid=1: thread exiting with uncaught exception (group=0x412148a8)
    E/AndroidRuntime( 8555): FATAL EXCEPTION: main
    E/AndroidRuntime( 8555): java.lang.RuntimeException: Unable to create application at.bitfire.davdroid.App: android.database.sqlite.SQLiteException: no such table: settings (code 1): , while compiling: SELECT value FROM settings WHERE setting=?
    E/AndroidRuntime( 8555):        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4427)
    E/AndroidRuntime( 8555):        at android.app.ActivityThread.access$1300(ActivityThread.java:151)
    E/AndroidRuntime( 8555):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)
    E/AndroidRuntime( 8555):        at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime( 8555):        at android.os.Looper.loop(Looper.java:153)
    E/AndroidRuntime( 8555):        at android.app.ActivityThread.main(ActivityThread.java:5071)
    E/AndroidRuntime( 8555):        at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 8555):        at java.lang.reflect.Method.invoke(Method.java:511)
    E/AndroidRuntime( 8555):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
    E/AndroidRuntime( 8555):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
    E/AndroidRuntime( 8555):        at dalvik.system.NativeStart.main(Native Method)
    E/AndroidRuntime( 8555): Caused by: android.database.sqlite.SQLiteException: no such table: settings (code 1): , while compiling: SELECT value FROM settings WHERE setting=?
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:949)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:560)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1342)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1189)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1060)
    E/AndroidRuntime( 8555):        at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1228)
    E/AndroidRuntime( 8555):        at at.bitfire.davdroid.model.Settings.getBoolean(Settings.java:26)
    E/AndroidRuntime( 8555):        at at.bitfire.davdroid.App.reinitLogger(App.java:74)
    E/AndroidRuntime( 8555):        at at.bitfire.davdroid.App.onCreate(App.java:64)
    E/AndroidRuntime( 8555):        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1002)
    E/AndroidRuntime( 8555):        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4424)
    E/AndroidRuntime( 8555):        ... 10 more
    

    PLease issues on gitlab.


  • developer

    @akero Hello, please see the original post for RC1:

    If you're upgrading from DAVdroid 0.9.x there are migration routines that try to update all your settings and resources to the newest version. If you previously had an alpha or beta version, you need to uninstall and reinstall the latest version.


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.