I am writing an Android application using SQLite DB.
I had several experiments and changed the DB version from 1 to 2.
Then my database schema became stable because I didnβt release the application and it for my own use
I decided to change the version to 1 again.
I did a new install and everything worked fine.
But then starting a second time causes this error:
06-05 10:03:35.683: E/AndroidRuntime(9010): android.database.sqlite.SQLiteException: Can't downgrade database from version 2 to 1 06-05 10:03:35.683: E/AndroidRuntime(9010): at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)
Why is this, in the end, I made a new installation, and the DB also needed to be deleted. Not?
How can I change the version to 1 again?
java android database sqlite
Elad benda2
source share