{"action":"closed","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1856","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1856/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1856/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1856/events","html_url":"https://github.com/realm/realm-java/issues/1856","id":119395351,"number":1856,"title":"RealmMigrationNeededException on fresh install after model change","user":{"login":"adamsp","id":1720800,"avatar_url":"https://avatars.githubusercontent.com/u/1720800?v=3","gravatar_id":"","url":"https://api.github.com/users/adamsp","html_url":"https://github.com/adamsp","followers_url":"https://api.github.com/users/adamsp/followers","following_url":"https://api.github.com/users/adamsp/following{/other_user}","gists_url":"https://api.github.com/users/adamsp/gists{/gist_id}","starred_url":"https://api.github.com/users/adamsp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamsp/subscriptions","organizations_url":"https://api.github.com/users/adamsp/orgs","repos_url":"https://api.github.com/users/adamsp/repos","events_url":"https://api.github.com/users/adamsp/events{/privacy}","received_events_url":"https://api.github.com/users/adamsp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/backlog","name":"backlog","color":"ededed"},{"url":"https://api.github.com/repos/realm/realm-java/labels/Help","name":"Help","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-29T23:22:23Z","updated_at":"2015-11-30T12:41:39Z","closed_at":"2015-11-30T12:41:39Z","body":"I'm working on integrating Realm in my Android application. My model changes from time-to-time during development, so I expect the `RealmMigrationNeededException` when this happens. I uninstall the app (`adb uninstall my.package.name`), and then fresh install - but still get the exception.\r\n\r\nI can fix it by:\r\n\r\n`adb shell run-as my.package.name rm files/default.realm files/default.realm.lock`\r\n\r\nShouldn't these be removed when I uninstall the app? I suspect this _isn't_ a Realm issue but rather something to do with Android or adb - however I haven't had this issue with say, ORMLite. Any ideas?\r\n\r\nEdit: I actually get this exception even if I don't change the model at all."}}