{"action":"created","issue":{"url":"https://api.github.com/repos/satyan/sugar/issues/267","labels_url":"https://api.github.com/repos/satyan/sugar/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/satyan/sugar/issues/267/comments","events_url":"https://api.github.com/repos/satyan/sugar/issues/267/events","html_url":"https://github.com/satyan/sugar/issues/267","id":58180888,"number":267,"title":"SugarORM doesn't work with multi-dex","user":{"login":"gauchito","id":6490615,"avatar_url":"https://avatars.githubusercontent.com/u/6490615?v=3","gravatar_id":"","url":"https://api.github.com/users/gauchito","html_url":"https://github.com/gauchito","followers_url":"https://api.github.com/users/gauchito/followers","following_url":"https://api.github.com/users/gauchito/following{/other_user}","gists_url":"https://api.github.com/users/gauchito/gists{/gist_id}","starred_url":"https://api.github.com/users/gauchito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauchito/subscriptions","organizations_url":"https://api.github.com/users/gauchito/orgs","repos_url":"https://api.github.com/users/gauchito/repos","events_url":"https://api.github.com/users/gauchito/events{/privacy}","received_events_url":"https://api.github.com/users/gauchito/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/satyan/sugar/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-19T08:43:50Z","updated_at":"2015-10-13T07:20:05Z","closed_at":null,"body":"I have a project which uses SugarORM and it was working fine until I enabled multi-dex. After that I've noticed that sometimes the app doesn't create all the db tables in the device. I suspect it's because when it loads dynamically the domain classes, it only picks up the ones in classes.dex and not in the other dex files. So if unfortunately the domain classes are packed in classes2.dex for example, then the db tables for them are not created during start up."},"comment":{"url":"https://api.github.com/repos/satyan/sugar/issues/comments/147627415","html_url":"https://github.com/satyan/sugar/issues/267#issuecomment-147627415","issue_url":"https://api.github.com/repos/satyan/sugar/issues/267","id":147627415,"user":{"login":"bendaniel10","id":10072408,"avatar_url":"https://avatars.githubusercontent.com/u/10072408?v=3","gravatar_id":"","url":"https://api.github.com/users/bendaniel10","html_url":"https://github.com/bendaniel10","followers_url":"https://api.github.com/users/bendaniel10/followers","following_url":"https://api.github.com/users/bendaniel10/following{/other_user}","gists_url":"https://api.github.com/users/bendaniel10/gists{/gist_id}","starred_url":"https://api.github.com/users/bendaniel10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendaniel10/subscriptions","organizations_url":"https://api.github.com/users/bendaniel10/orgs","repos_url":"https://api.github.com/users/bendaniel10/repos","events_url":"https://api.github.com/users/bendaniel10/events{/privacy}","received_events_url":"https://api.github.com/users/bendaniel10/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T07:20:05Z","updated_at":"2015-10-13T07:20:05Z","body":"I ran into this issue too, I found out that when MultiDex is enabled, the ReflectionUtil class does not scan all the dex files for entity classes correctly, I think it scans the first one only. I've forked the project and provided a fix for that: https://github.com/bendaniel10/sugar"}}