Meta Tech Podcast

79: Building Android apps in Meta's monorepository with Buck2

Meta Tech Podcast

Show Notes

How do you keep Android build times under control when your codebase spans tens of thousands of modules and millions of lines of Kotlin? In this episode, Pascal talks with Iveta, Navid, and Joshua from Meta's Android Developer Experience team about the technical strategies that help Meta's engineers stay productive at scale. We discuss approaches like source-only ABIs and incremental compilation – clever solutions that have helped us tackle the challenges of building fast in a monorepo, as well as what you can do to keep your builds fast with Buck2. Got feedback? Send it to us on Threads (https://threads.net/@metatechpod), Instagram (https://instagram.com/metatechpod) and don't forget to follow our host Pascal (https://mastodon.social/@passy, https://threads.net/@passy_). Fancy working with us? Check out https://www.metacareers.com/. Timestamps Intro 0:06

Introducing Iveta 2:09

Introducing Joshua 3:29

Introducing Navid 4:00

Android DevX Team 4:36

The challenges of build speed 6:28

Buck2 and Android 7:34

How to add new language support to Buck2 9:01

What's new in Open Source? 11:02

Optimising Kotlin builds 12:55

Source-only ABI 14:25

Developer restrictions 17:33

From Jasabi to Kosabi 20:33

Strategies for keeping builds fast 22:08

Working with big modules 23:00

Bringing incremental Kotlin compilation to Buck2 24:48

Speed improvements 28:52

Third-party library upgrades 30:54

What's next? 33:56

Outro 36:14

Links Meta Connect 2025 Developer Talks: https://www.youtube.com/playlist?list=PLb0IAmt7-GS2cONiFVhtdKWEsyNkF6uUP

Buck2: https://buck2.build/

Incremental Kotlin compilation at Meta: https://engineering.fb.com/2025/08/26/open-source/enabling-kotlin-incremental-compilation-on-buck2/

Blog post about Jasabi (the Java counterpart to Kosabi): https://engineering.fb.com/2017/11/09/android/rethinking-android-app-compilation-with-buck/

Kotlin Conf talk about source-only ABI compilation: https://2025.kotlinconf.com/talks/857571/

Meta Connect 2025 Developer Talks: https://www.youtube.com/playlist?list=PLb0IAmt7-GS2cONiFVhtdKWEsyNkF6uUP

Buck2: https://buck2.build/

Incremental Kotlin compilation at Meta: https://engineering.fb.com/2025/08/26/open-source/enabling-kotlin-incremental-compilation-on-buck2/

Blog post about Jasabi (the Java counterpart to Kosabi): https://engineering.fb.com/2017/11/09/android/rethinking-android-app-compilation-with-buck/

Kotlin Conf talk about source-only ABI compilation: https://2025.kotlinconf.com/talks/857571/

More from Meta Tech Podcast

Oct 15, 2026

How do you add end-to-end encryption to a messenger that people have already been using for years, without taking away the message history they expect to be there? Emma Connor works on the team behind Labyrinth, Messenger's encrypted storage protocol. We get into where the encryption keys actually live, which turns out to be nowhere near Meta, and why a six-digit PIN is far harder to attack than six digits ought to be. Emma also explains the hardware security modules that Meta deliberately locked itself out of, what happens when you lose a device and want it cut out of your account, how key transparency lets you verify who you are talking to without having to trust us, and why Labyrinth 1.1 moved to post-quantum cryptography. All of this and more is discussed in this episode. Got feedback? Send it to us on Threads (https://threads.net/@metatechpod), Instagram (https://instagram.com/metatechpod) and don't forget to follow our host Pascal (https://mastodon.social/@passy, https://threads.net/@passy_). Fancy working with us? Check out https://www.metacareers.com/. Links Opaque Rust Crate - https://crates.io/crates/opaque-ke

Jul 29, 2026

Pascal is going on Recharge for August so there will be no regular interview episode. However, we want to hear your questions for our mailbag episode. Send them to us on Instagram (https://www.instagram.com/metatechpod) or Threads (https://www.threads.com/@metatechpod) or via good old email to [email protected].

Jul 13, 2026

What changes for you as a developer when the device moves from your pocket to your face? The battery shrinks by an order of magnitude, the thermal budget is whatever won't make your nose uncomfortable, and your mental model of "one process, one device" goes out the window. Rey and Dmitrii talk us through their custom power monitors, how they've extended Perfetto to give a coherent trace across a multi-device system, why robotic arms make surprisingly good QA engineers, and what it takes to catch the kind of regression that quietly costs you thirty minutes of call time. All of this and more is discussed in this episode. Got feedback? Send it to us on Threads (https://threads.net/@metatechpod), Instagram (https://instagram.com/metatechpod) and don't forget to follow our host Pascal (https://mastodon.social/@passy, https://threads.net/@passy_). Fancy working with us? Check out https://www.metacareers.com/. Links Migrating Data Ingestion Systems at Meta Scale: https://engineering.fb.com/2026/05/12/data-infrastructure/migrating-data-ingestion-systems-at-meta-scale/

Jun 9, 2026

Your smart glasses run all day on a battery narrower than your pinky finger and building it required reinventing how batteries are made. In this episode, Pascal talks to Karthik and Myuran, the engineers behind Meta's steel can battery technology, to explore why traditional pouch cells couldn't cut it for the ultra-slim temple arms of AI glasses like Meta Ray-Bans and the Oakley Vanguards. Tune in to learn how Meta designed, built, and scaled the batteries powering your glasses, wristbands, and cases from first prototype to mass production. Got feedback? Send it to us on Threads (https://threads.net/@metatechpod), Instagram (https://instagram.com/metatechpod) and don't forget to follow our host Pascal (https://mastodon.social/@passy, https://threads.net/@passy_). Fancy working with us? Check out https://www.metacareers.com/. Links SilverTorch: Index as Model — A New Retrieval Paradigm for Recommendation Systems - https://engineering.fb.com/2026/05/26/ml-applications/silvertorch-index-as-model-new-retrieval-paradigm-recommendation-systems/ Timestamps Intro and News 0:06

May 8, 2026

You've probably spotted those little circles of your friends' faces popping up on Facebook Reels. They look simple enough, but building them was a proper engineering challenge. In this episode, Pascal chats to Joseph and Subasree about Friend Bubbles, a feature that surfaces which of your close friends have been watching and reacting to the same Reels as you. We get into the details of how prefetching keeps things snappy without wrecking scroll performance, why the team's ML model had to move from survey-based friend rankings to real-time interaction signals, and the surprising discovery that showing fewer bubbles actually made the whole feature click. If you've ever underestimated a "simple" feature, this one's for you. Got feedback? Send it to us on Threads (https://threads.net/@metatechpod), Instagram (https://instagram.com/metatechpod) and don't forget to follow our host Pascal (https://mastodon.social/@passy, https://threads.net/@passy_). Fancy working with us? Check out https://www.metacareers.com/. Links https://engineering.fb.com/2026/03/18/ml-applications/friend-bubbles-enhancing-social-discovery-on-facebook-reels/

See all episodes →