Too many classes in –main-dex-list, main dex capacity exceeded

Let’s first understand the problem: On pre-Lollipop devices, only main dex is being loaded by the framework. To support multi-dex applications you have to explicitly patch application class loader with all the secondary dex files (this is why your Application class have to extend MultiDexApplication class or call MultiDex#install). This means that your application’s main … Read more