yanzhenjie / Kalle

:apple: Http client for Android platform.
https://yanzhenjie.com/Kalle
Apache License 2.0
592 stars 98 forks source link

Can't upgrade read-only database from version 0 to 3: _kalle_cookies_db.db #77

Open tall-nuts opened 5 years ago

tall-nuts commented 5 years ago

Caused by:

android.database.sqlite.SQLiteException:Can't upgrade read-only database from version 0 to _kalle_cookies_db.db android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:244) android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187) blh.b(CookieDao.java:2042) blg.(DBCookieStore.java:54) blg.(DBCookieStore.java:36)

animus198656 commented 5 years ago

我也遇到了这个问题

  1. java.lang.RuntimeException: Unable to create application com.stub.StubApp: android.database.sqlite.SQLiteException: Can't upgrade read-only database from version 0 to 3: _kalle_cookies_db.db
  2. android.app.ActivityThread.handleBindApplication(ActivityThread.java:5134)
  3. android.app.ActivityThread.access$1600(ActivityThread.java:186)
  4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1658)
  5. android.os.Handler.dispatchMessage(Handler.java:111)
  6. android.os.Looper.loop(Looper.java:194)
  7. android.app.ActivityThread.main(ActivityThread.java:5905)
  8. java.lang.reflect.Method.invoke(Native Method)
  9. java.lang.reflect.Method.invoke(Method.java:372)
  10. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1127)
  11. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:893)