If you’ve been an Android developer in the last 2 years, you must have seen this dreaded exception:
dex: method ID not in [0, 0xffff]: 65536
Quick googling would immediately bring up the phrase “65K method count” and the recommended solution “multi-dexing”. But if you want to really understand this mysterious number and the reason behind its existence, listen on!
- Official Dalvik specification [source.android.com] (look for invoke- prefix methods)
- Android and the Dex limit (great post)
- ADB Ep 11 : ART, pART 2 (Trash Talk) (discussion on ART)
- MultiDexing [developer.android.com] (solution to your 65K method count woes)