android-best-practices icon indicating copy to clipboard operation
android-best-practices copied to clipboard

Multidexing solutions

Open staltz opened this issue 9 years ago • 2 comments

For example, http://developer.android.com/tools/building/multidex.html

staltz avatar Nov 05 '14 18:11 staltz

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.

pakoito avatar Nov 06 '14 13:11 pakoito

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

benjamin-bader avatar Jul 01 '15 22:07 benjamin-bader