Which tool converts Java bytecode into DEX for release builds and also shrinks code?

  1. adb
  2. D8/R8
  3. javac
  4. AAPT2
Answer

B) D8/R8

D8 dexes the bytecode and R8 shrinks, optimises and obfuscates it.

Computer Science MCQ · More Android OS: Architecture, Framework and Application Development MCQs · Practise