Posted by Ben Trengrove – Developer Relations Engineer, Matt Dyor – Product Supervisor
To empower Android builders, we’re excited to announce Android Studio’s new Kotlin Multiplatform (KMP) Shared Module Template. This template was particularly designed to permit builders to make use of a single codebase and apply enterprise logic throughout platforms. Extra particularly, builders will have the ability to add shared modules to current Android apps and share the enterprise logic throughout their Android and iOS functions.
This makes it simpler for Android builders to craft, keep, and most significantly, personal the enterprise logic. The KMP Shared Module Template is on the market inside Android Studio whenever you create a brand new module inside a undertaking.

A single code base for enterprise logic
Most builders have grown accustomed to sustaining completely different code bases, platform to platform. Previously, each time there’s an replace to the enterprise logic, it have to be rigorously up to date in every codebase. However with the KMP Shared Module Template:
- Builders can write as soon as and publish the enterprise logic to wherever they want it.
- Engineering groups can do extra sooner.
- Consumer experiences are extra constant throughout the whole viewers, no matter platform or kind issue.
- Releases are higher coordinated and launched with fewer errors.
Clients and developer groups who undertake KMP Shared Module Templates ought to anticipate to realize higher ROI from cellular groups who can flip their consideration in the direction of delighting their customers extra and worrying about inconsistent code much less.
KMP enthusiasm
The Android developer neighborhood stays very enthusiastic about KMP, particularly after Google I/O 2024 the place Google introduced official help for shared logic throughout Android and iOS. We’ve seen continued momentum and enthusiasm from the neighborhood. For instance, there are actually over 1,500 KMP libraries listed on JetBrains’ klibs.io.
Our prospects are excited as a result of KMP has made Android builders extra productive. Persistently, Android builders have stated that they need options that permit them to share code extra simply and so they need instruments which enhance productiveness. This is the reason we suggest KMP; KMP concurrently delivers a terrific expertise for Android customers whereas boosting ROI for the app makers. The KMP Shared Module Template is the newest step in the direction of a developer ecosystem the place person expertise is constant and functions are up to date seamlessly.
Giant scale KMP adoptions
This KMP Shared Module Template is new, however KMP extra broadly is a maturing expertise with a number of large-scale migrations underway. In reality, KMP has matured sufficient to help mission essential functions at Google. Google Docs, for instance, is now working KMP in manufacturing on iOS with runtime efficiency on par or higher than earlier than. Past Google, Stone’s 130 cellular builders are sharing over 50% of their code, permitting current cellular groups to ship options roughly 40% sooner to each Android and iOS.
KMP was designed for Android growth
As all the time, we have designed the Shared Module Template with the wants of Android developer groups in thoughts. Making the KMP Shared Module Template a part of the native Android Studio expertise permits builders to effectively add a shared module to an current Android utility and instantly begin constructing shared enterprise logic that leverages a number of KMP-ready Jetpack libraries together with Room, SQLite, and DataStore to call just some.
Come test it out at KotlinConf
Releasing Android Studio’s KMP Shared Module Template marks a big step towards empowering Android growth groups to innovate sooner, to effectively handle enterprise logic, and to construct high-quality functions with higher confidence. It signifies that Android builders will be accountable for the code that drives the enterprise logic for each app throughout Android and iOS. We’re excited to carry Shared Module Template to KotlinConf in Copenhagen, Might 21 – 23.

Get began with KMP Shared Module Template
To get began, you will want the newest version of Android Studio. In your Android undertaking, the Shared Module Template is on the market inside Android Studio whenever you create a brand new module. Click on on “File” then “New” then “New Module” and at last “Kotlin Multiplatform Shared Module” and you might be prepared so as to add a KMP Shared Module to your Android app.
We recognize any suggestions on stuff you like or options you want to see. If you happen to discover a bug, please report the difficulty. Bear in mind to additionally comply with us on X, LinkedIn, Weblog, or YouTube for extra Android growth updates!