java.lang.RuntimeException

Unable to create application org.sufficientlysecure.keychain.KeychainApplication: android.database.sqlite.SQLiteException: duplicate column name: name (code 1): , while compiling: ALTER TABLE user_packets ADD COLUMN name TEXT

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 web1110

  • via GitHub by dschuermann
    ,
  • via Stack Overflow by Alexander Boman Skoug
    ,
  • via Stack Overflow by shisushi
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to create application org.sufficientlysecure.keychain.KeychainApplication: android.database.sqlite.SQLiteException: duplicate column name: name (code 1): , while compiling: ALTER TABLE user_packets ADD COLUMN name TEXT at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5231) at android.app.ActivityThread.access$1600(ActivityThread.java:181) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1535) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6117) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Caused by: android.database.sqlite.SQLiteException: duplicate column name: name (code 1): , while compiling: ALTER TABLE user_packets ADD COLUMN name TEXT at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1093) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:670) at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588) at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59) at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31) at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1798) at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1729) at org.sufficientlysecure.keychain.provider.KeychainDatabase.onUpgrade(KeychainDatabase.java:311) at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256) at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187) at org.sufficientlysecure.keychain.KeychainApplication.onCreate(KeychainApplication.java:125) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5228) ... 9 more

    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,
    Hiren AmaliyarHiren Amaliyar
    14 times, last one
    justCodeitjustCodeit
    27 times, last one
    gamebusterzgamebusterz
    Once,
    filpgamefilpgame
    3 times, last one
    112 more bugmates