Saturday, 18 November 2017

performance - Can I enable multidex in Android debug build only?

style="font-weight: bold;">

Answer



Dears,
I read in many blog posts that
multidex apps startup is slower than normal apps.

My app uses a lot
of libraries that exceed 64k methods so I use multidex. But when I use proguard in
release build, the final apk becomes less than 64k
methods



So My question is: Can I enable multidex
in Android debug build only so I don't have runtime error? and disable multi dex in
release build as I don't need it?



If yes, how
?



If No, Is Android smart enough to speedup
startup as it should recognize that app didn't exceed 64k even if it is multi dex app
?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...