Android: SugarORM and multidex

I am working with an Android project that uses SugarORM. Now the method limit has increased so much that I need to activate multidex support. But now I have a problem with SugarORM, it only creates tables that are in the classes.dex file. It seems to completely ignore classes2.dex. This is really a bug in Sugar and is there a good way around the problem?

+7
android sugarorm multidex
source share
1 answer

An error with Multidex appears on Sugar ORM. Reflection api does not find your model classes when they are outside the main dex file, so it does not allow the framework to correctly generate your tables. Hope this helps.

+2
source share

All Articles