{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/3343","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/3343/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/3343/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/3343/events","html_url":"https://github.com/realm/realm-java/issues/3343","id":172996702,"number":3343,"title":"Getting \"RealmMigration must be provided\" Exception","user":{"login":"Bajranghudda1","id":15339217,"avatar_url":"https://avatars.githubusercontent.com/u/15339217?v=3","gravatar_id":"","url":"https://api.github.com/users/Bajranghudda1","html_url":"https://github.com/Bajranghudda1","followers_url":"https://api.github.com/users/Bajranghudda1/followers","following_url":"https://api.github.com/users/Bajranghudda1/following{/other_user}","gists_url":"https://api.github.com/users/Bajranghudda1/gists{/gist_id}","starred_url":"https://api.github.com/users/Bajranghudda1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bajranghudda1/subscriptions","organizations_url":"https://api.github.com/users/Bajranghudda1/orgs","repos_url":"https://api.github.com/users/Bajranghudda1/repos","events_url":"https://api.github.com/users/Bajranghudda1/events{/privacy}","received_events_url":"https://api.github.com/users/Bajranghudda1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-24T16:16:14Z","updated_at":"2016-08-25T06:54:05Z","closed_at":null,"body":"I'm getting \"**io.realm.exceptions.RealmMigrationNeededException: RealmMigration must be provided Exception**\"\r\n\r\nActually i'm using assetFile in reamconfiguration but first i'm creating a realm file like this way in another application:-\r\n\r\n     RealmConfiguration realmConfiguration = new RealmConfiguration.Builder(this)\r\n                .name(\"mydb\")\r\n                .schemaVersion(1)\r\n                .deleteRealmIfMigrationNeeded()\r\n                .build();\r\n        Realm.setDefaultConfiguration(realmConfiguration);\r\n\r\nAnd in my main application i'm using this (mydb) as assets and my migration code looks like:-\r\n\r\n     RealmConfiguration config = new RealmConfiguration.Builder(this)\r\n                .name(Realm.DEFAULT_REALM_NAME)\r\n                .assetFile(this, \"dn_db.realm\")\r\n                .schemaVersion(1)\r\n                .build();\r\n        Realm.setDefaultConfiguration(config);\r\n\r\nAnd when i'm calling:-\r\nRealm realm = Realm.getDefaultInstance();\r\n\r\ngetting exception \"**io.realm.exceptions.RealmMigrationNeededException: RealmMigration must be provided**\"\r\n\r\n**Note:- I'm using same realm version 1.2.0** \r\nand removing app not working, bkz i'm still getting same error."},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/242296764","html_url":"https://github.com/realm/realm-java/issues/3343#issuecomment-242296764","issue_url":"https://api.github.com/repos/realm/realm-java/issues/3343","id":242296764,"user":{"login":"beeender","id":449296,"avatar_url":"https://avatars.githubusercontent.com/u/449296?v=3","gravatar_id":"","url":"https://api.github.com/users/beeender","html_url":"https://github.com/beeender","followers_url":"https://api.github.com/users/beeender/followers","following_url":"https://api.github.com/users/beeender/following{/other_user}","gists_url":"https://api.github.com/users/beeender/gists{/gist_id}","starred_url":"https://api.github.com/users/beeender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeender/subscriptions","organizations_url":"https://api.github.com/users/beeender/orgs","repos_url":"https://api.github.com/users/beeender/repos","events_url":"https://api.github.com/users/beeender/events{/privacy}","received_events_url":"https://api.github.com/users/beeender/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T06:54:05Z","updated_at":"2016-08-25T06:54:05Z","body":"https://realm.io/docs/java/latest/#migrations Just put an empty migration block there ."}}
{"actor":{"display_login":"beeender"}}