Android: Jumbo Mode vs Multidex

后端 未结 2 1751
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 20:25

I\'m not totally sure what the difference is between setting dex option \"jumbomode\" to true vs adding multidex support.

Setting jumbo mode to true or multidex to t

2条回答
  •  悲&欢浪女
    2020-12-08 20:58

    take a look into this (search for jumbo):

    https://developers.soundcloud.com/blog/congratulations-you-have-a-lot-of-code-remedying-androids-method-limit-part-1

    in short: - similar to Android Method count limit (64K) - there's a limit on string count (64K) - to overcome this limit - jumbo mode enables referencing more than 2^16 strings by using special opCode that enables encoding up to 2^32 strings.

    in practice: - from my experience both (MultiDex & JumboMode) have major impact on apk installation time (much slower).

    hope this helps:)

提交回复
热议问题