Skip to main content
Participant
Sep 20, 2018 1:43 PM UTC
Question

Multidex Enabling With 54k Method References?

I'm attempting to reduce my application back down to a single dex file after struggling with API <= 19 launch times. I currently am ending up with 3 dex files but have a total of only 54k method references. What's going on? I am a whole 10k under the limit, am I missing something here? I've removed the 'android:name="android.support.multidex.MultiDexApplication"' line and have even tried setting that to the default Application reference as well. No change.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
Sep 21, 2018 3:10 PM UTC

This continues to be a large issue. ATM AIR is splitting into two dex files as soon as I pass around 20k references. That's under 1/3 of the references I should be able to clearly fit into one dex! This is completely needlessly destroying the launch times on Android devices <= API 19 which represents %20+ of my user base. Either I drop support for these users or I pull out all Android specific features from my app? There has to be something that can be done here...

Translate
Participant
Sep 20, 2018 4:59 PM UTC

I got it down to around 49k referenced methods and I'm still ending up with 3 dex files...

Translate