Sugar ORM No such table exception

后端 未结 6 1998
后悔当初
后悔当初 2021-01-06 15:50

Sugar ORM works perfectly on Android <5, but on Android 5> it crashes. I am using version 1.4

Please help me.

Error: android.database.sqlite.SQLiteE

6条回答
  •  再見小時候
    2021-01-06 16:02

    If you already ran your app with sugar and then later you added a model that gives the 'no such table error', then you need to just update(increase) your database VERSION meta in your AndroidManifest.xml. This solves the problem most of the time when instant run is not the issue. Look at the issue HERE For more insight.

提交回复
热议问题