In Android Studio, select Preferences | Plugins, search for the plugin Kotlin Multiplatform Mobile in Marketplace and install it. Install the Kotlin Multiplatform Mobile plugin. If needed, update to the latest version in the Stable update channel. In Android Studio, select Tools | Kotlin | Configure Kotlin Plugin Updates and check the current Kotlin plugin version. Make sure that you have a compatible Kotlin plugin installed. You will use it to add Swift or Objective-C code to your iOS application.
Most of the time, Xcode will work in the background. If you need to write iOS-specific code and run an iOS application, install Xcode – version 11.3 or higher. You will use Android Studio for creating your multiplatform applications and running them on simulated or hardware devices. Install Android Studio – version 4.2 or higher. These steps cannot be performed on other operating systems, such as Microsoft Windows. If you also want to write iOS-specific code and run an iOS application on a simulated or real device, use a Mac with a macOS. If you are going to work with shared code or Android-specific code, you can work on any computer with an operating system supported by Android Studio.
Set up an environment for KMM developmentīefore you begin creating your first application to work on both iOS and Android, start by setting up an environment for Kotlin Multiplatform Mobile (KMM) development: