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 be capable to add shared modules to current Android apps and share the enterprise logic throughout their Android and iOS purposes.
This makes it simpler for Android builders to craft, preserve, and most significantly, personal the enterprise logic. The KMP Shared Module Template is offered inside Android Studio whenever you create a brand new module inside a venture.

A single code base for enterprise logic
Most builders have grown accustomed to sustaining totally different code bases, platform to platform. Up to now, at any time when 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.
- Person experiences are extra constant throughout the complete viewers, no matter platform or type issue.
- Releases are higher coordinated and launched with fewer errors.
Prospects and developer groups who undertake KMP Shared Module Templates ought to anticipate to attain larger ROI from cell groups who can flip their consideration in 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 got seen continued momentum and enthusiasm from the neighborhood. For instance, there are actually over 1,500 KMP libraries listed on JetBrains’ klibs.io.
Our clients are excited as a result of KMP has made Android builders extra productive. Constantly, Android builders have stated that they need options that enable them to share code extra simply they usually need instruments which increase productiveness. For this reason we advocate KMP; KMP concurrently delivers an important expertise for Android customers whereas boosting ROI for the app makers. The KMP Shared Module Template is the newest step in direction of a developer ecosystem the place person expertise is constant and purposes are up to date seamlessly.
Massive scale KMP adoptions
This KMP Shared Module Template is new, however KMP extra broadly is a maturing know-how with a number of large-scale migrations underway. Actually, KMP has matured sufficient to help mission important purposes at Google. Google Docs, for instance, is now operating KMP in manufacturing on iOS with runtime efficiency on par or higher than earlier than. Past Google, Stone’s 130 cell builders are sharing over 50% of their code, permitting current cell groups to ship options roughly 40% sooner to each Android and iOS.
KMP was designed for Android improvement
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 software and instantly begin constructing shared enterprise logic that leverages a number of KMP-ready Jetpack libraries together with Room, SQLite, and DataStore to call only a few.
Come test it out at KotlinConf
Releasing Android Studio’s KMP Shared Module Template marks a major step towards empowering Android improvement groups to innovate sooner, to effectively handle enterprise logic, and to construct high-quality purposes with larger confidence. It implies that Android builders might be accountable for the code that drives the enterprise logic for each app throughout Android and iOS. We’re excited to deliver Shared Module Template to KotlinConf in Copenhagen, Could 21 – 23.

Get began with KMP Shared Module Template
To get began, you may want the newest version of Android Studio. In your Android venture, the Shared Module Template is offered inside Android Studio whenever you create a brand new module. Click on on “File” then “New” then “New Module” and eventually “Kotlin Multiplatform Shared Module” and you’re prepared so as to add a KMP Shared Module to your Android app.
We admire any suggestions on stuff you like or options you wish to see. When you discover a bug, please report the difficulty. Bear in mind to additionally comply with us on X, LinkedIn, Weblog, or YouTube for extra Android improvement updates!