android-best-practices
android-best-practices copied to clipboard
Multidexing solutions
For example, http://developer.android.com/tools/building/multidex.html
It's still a bit iffy, our project and several others are having tool hell with unreproducible, stochastic builds.
The solution google is giving is downloading an AOSP script to run and generate a main dex class list which you have to manually maintain, and multidex tasks around the framework. And even with it, you're not assured it'll work.
Multidex is still subject to random failures on older devices, and slow/unreproducible builds in any case. We wrote a Gradle plugin to keep tabs on method counts as you build: https://github.com/KeepSafe/dexcount-gradle-plugin