Engineering

How Meta switched Android development to Kotlin

Meta is migrating its Android codebase from Java to Kotlin. Here are some of the lessons we’ve learned along the way.
October 24, 2022

Meta has adopted Kotlin as its new primary language for Android development — moving away from Java.

Recommended Reading

Why it matters:

Kotlin has become a popular language for Android development and offers several advantages over Java. Migrating our Android codebase to Kotlin will make our development workflows more efficient overall.

Background:

Meta’s Android repository reaches across many of our apps and technologies, including Facebook, Instagram, Messenger, Portal, and the Quest. So shifting away from Java and over to Kotlin is not a trivial task. Converting to Kotlin also comes with some disadvantages that we had to address.

Take a deeper dive:

Learn more about how Meta’s engineers have already migrated from zero to more than 10 million lines of Kotlin 

We're hiring engineers!

Help us build infrastructure and solve big challenges at scale

Engineering

Meta’s engineering teams create the infrastructure and systems that underpin our apps and services, connecting more than 2 billion people.