Android: Jumbo Mode vs Multidex

后端 未结 2 1755
隐瞒了意图╮
隐瞒了意图╮ 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:55

    Jumbo Mode, when reading https://source.android.com/devices/tech/dalvik/dalvik-bytecode.html, the const-string/jumbo is the jumbo mode for string. It is about the opcode such that "op vAA, string@BBBBBBBB" versus "op vAA, string@BBBB", 32 bits versus 16 bit.

    Multi Dex is to allow to load classes from more than one dex file. The primary classes.dex must contain the classes necessary for calling this class methods. Secondary dex files found in the application apk will be added to the classloader after first call to MultiDex.install(Context) see https://developer.android.com/reference/android/support/multidex/MultiDex.html

提交回复
热议问题