{"action":"opened","issue":{"url":"https://api.github.com/repos/objectbox/objectbox-java/issues/357","repository_url":"https://api.github.com/repos/objectbox/objectbox-java","labels_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/357/comments","events_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/357/events","html_url":"https://github.com/objectbox/objectbox-java/issues/357","id":294323351,"number":357,"title":"DB's last entity ID 5 is higher than 4 from model","user":{"login":"AndSync","id":5254869,"avatar_url":"https://avatars2.githubusercontent.com/u/5254869?v=4","gravatar_id":"","url":"https://api.github.com/users/AndSync","html_url":"https://github.com/AndSync","followers_url":"https://api.github.com/users/AndSync/followers","following_url":"https://api.github.com/users/AndSync/following{/other_user}","gists_url":"https://api.github.com/users/AndSync/gists{/gist_id}","starred_url":"https://api.github.com/users/AndSync/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndSync/subscriptions","organizations_url":"https://api.github.com/users/AndSync/orgs","repos_url":"https://api.github.com/users/AndSync/repos","events_url":"https://api.github.com/users/AndSync/events{/privacy}","received_events_url":"https://api.github.com/users/AndSync/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T09:25:16Z","updated_at":"2018-02-05T09:25:16Z","closed_at":null,"author_association":"NONE","body":"when I install a newer version of my app over an old release version caused this Exception ,how to solve it?\r\n\r\nI once deleted the files in the folder objectbox-models and rebuild them when coding the new version.Is this the cause? \r\n\r\njava.lang.RuntimeException: Unable to instantiate application com.taoche.qctt.app.App: io.objectbox.exception.DbException: DB's last entity ID 5 is higher than 4 from model\r\n\tat android.app.LoadedApk.makeApplication(LoadedApk.java:565)\r\n\tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:4519)\r\n\tat android.app.ActivityThread.access$1600(ActivityThread.java:147)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1346)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:135)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5254)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705)\r\nCaused by: io.objectbox.exception.DbException: DB's last entity ID 5 is higher than 4 from model\r\n\tat io.objectbox.BoxStore.nativeCreate(Native Method)\r\n\tat io.objectbox.BoxStore.<init>(BoxStore.java:197)\r\n\tat io.objectbox.BoxStoreBuilder.build(BoxStoreBuilder.java:308)\r\n\tat com.taoche.qctt.app.App.attachBaseContext(App.java:57)\r\n\tat android.app.Application.attach(Application.java:185)\r\n\tat android.app.Instrumentation.newApplication(Instrumentation.java:995)\r\n\tat android.app.Instrumentation.newApplication(Instrumentation.java:979)\r\n\tat android.app.LoadedApk.makeApplication(LoadedApk.java:560)\r\n\t... 10 more\r\n"}}
{"actor":{"display_login":"AndSync"}}