~/talk

To ∞ (~65K) and beyond!

Talkat Codemotion Milan 2016 · 2016-11-23..11-26· [android]
links:none on file
slides:none on file

Android hits a hard limit because the method reference index is 16 bits, so only 65,536 references fit; when exceeded builds fail with Too many method references (max 65536). Practical fixes: enable multiDex in Gradle (support lib works but adds startup cost and Dalvik instability pre‑Lollipop), or manually create secondary .dex files with a custom classloader (interfaces preferred over reflection). Best first step is shrinking with ProGuard (be specific with keep rules — a bad rule can waste ~6,000 methods). Use ClassyShark and dexcount to find culprits.

AI-written summary · about

  1. 0:00Start
  2. 4:53Crossing the limit
  3. 7:02Approaches
  4. 10:13Setup 3/3
  5. 12:18Disadvantages
  6. 14:54Secondary DEX
  7. 15:49How does it work
  8. 17:50Quick example w Reflection
  9. 21:46Improvements
  10. 32:29ClassyShark
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.