Skip to Content

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.

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 

To help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. Learn more, including about available controls: Cookies Policy