The Jack and Jill build system
summary
Google’s Jack and Jill replace javac+dx by having Jack compiles Java source straight to DEX while Jill converts library class files into a J format that Jack consumes; Jill conversion is slow on clean builds but cached so incremental builds speed up. Jack bundles ProGuard-like shrinking and gives about a ~10% bytecode speedup while full minification cuts the Google I/O APK from 3.1MB → 1.9MB. The J format is undocumented, and Java 8 default methods require Android 7.
AI-written summary · about
chapters (10)
- 0:00Introduction and background
- 2:43What Jack and Jill are
- 7:19Build process changes
- 11:20Practical implications for developers
- 16:39Java 8 features and ART runtime
- 18:24Optimizations in Jack and Jill
- 20:34Experimental results and app size
- 24:49Bytecode performance impact
- 26:18Conclusion and future outlook
- 28:01Q&A session
