Build once, run on Android, iOS, and Desktop with Compose Multiplatform
Let’s build something small but complete: GuessWhat. It’s a simple “guess the hidden combination” app, but the main focus is learning Kotlin Multiplatform and Compose Multiplatform — how to organize modules, share code, and run the same app on Android, iOS, and Desktop.
We’ll start from the official Kotlin Multiplatform project template (created either in Android Studio or via the JetBrains KMP Wizard) and then build it up step by step.
Let’s get started
- Open Android Studio → File → New → New Project.

- Select Kotlin Multiplatform → Next

- Set:
- Name:
GuessWhat-KMP - Package name:
me.mitkovic.guesswhat - for project location pick GuessWhat-KMP folder somewhere on your computer.
- → Next
- Name:

- Make sure targets include Android, iOS, and Desktop (also Share UI).
We will add tests later. Don’t include them now. - Click Finish and let Gradle sync complete.
- In Android Studio in top left corner (on the right from the Project folder icon) pick Project from the drop down menu
In Android Studio Terminal type: git init
→ Enter

- In Android Studio top right corner, below Project icon, you will now see Commit tab:

- Select all files and type in the box below: Initial commit
Click on Commit button.
Let git do its work. - Run:
- Android: select the Android run configuration → Run
- Desktop: run the desktop configuration (usually
desktopMain/Run desktop) - iOS: open the
iosAppproject in Xcode (or run iOS if you have it configured)
