Android: SugarORM and multidex

独自空忆成欢 提交于 2019-12-23 08:03:34

问题


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


回答1:


There is a bug on Sugar ORM with Multidex. The reflection api doesn't find your model classes when they are out of primary dex file, so It doesn't allow the framework to generate your tables correctly. Hope that it helps.



来源:https://stackoverflow.com/questions/28051716/android-sugarorm-and-multidex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!