yuweiguocn / GreenDaoUpgradeHelper

To solve database upgrade of greenDao and just need one line code
1.53k stars 295 forks source link

Two SQLite Exception happened. #62

Open Tan-Tshunglee opened 5 years ago

Tan-Tshunglee commented 5 years ago

I use this library to help migrating greendao DB tables in Application onCreate() method.

java.lang.RuntimeException:Unable to create application my.app.pakcage: android.database.sqlite.SQLiteException: Failed to change locale for db '/data/data/my.app.pakcage/databases/addressDb' to 'zh_CN'.

java.lang.RuntimeException:Unable to create application my.app.pakcage: android.database.sqlite.SQLiteException: table "COMPANY_PHOTO_DB_BEAN" already exists (code 1)

java.lang.RuntimeException:Unable to create application my.app.pakcage: android.database.sqlite.SQLiteException: Failed to change locale for db '/data/data/my.app.pakcage/databases/addressDb' to 'zh_CN'.

java.lang.RuntimeException:Unable to create application my.app.pakcage: android.database.sqlite.SQLiteException: table "COMPANY_PHOTO_DB_BEAN" already exists (code 1)

WangStormstout commented 4 years ago

请问如何解决。

woodstream commented 3 years ago

Failed to change locale for db '/data/data/my.app.pakcage/databases/addressDb' to 'zh_CN'.

How do you fix it?