There are already lots of discussions about the architecture of a quality android application, such as EffectiveAndroidUI, Android-CleanArchitecture, which use some common patterns like MVC, MVP or MVVM. However, what we are going to talk about in this post is not which one of these architectures is the best, but some kind solution while implementing these architectures.
Google recently posted an article to solve the
65K Reference Limit problem.
It is such a relief that we will not need to worry about the following errors any more.
Conversion to Dalvik format failed:
After configuring multidex in the module, some projects may encounter the loss of part of the the classes when using reflection to list all the classes in the apk.
The usual code may like this:
//get the apk path