Kotlin 多平台移动端入门

Kotlin Multiplatform Mobile is in Beta. It's almost stable, but migration steps might be required in the future.

Kotlin Multiplatform Mobile (KMM) is an SDK designed to simplify the development of cross-platform mobile applications. You can share common code between iOS and Android apps and write platform-specific code only where it's necessary. Common use cases for Kotlin Multiplatform Mobile include implementing a native UI or working with platform-specific APIs.

You can also watch this introductory video with a general explanation of what Kotlin Multiplatform Mobile is and how to use it in your projects.

Get to know Kotlin Multiplatform Mobile and create a mobile app that works on both Android and iOS by completing these steps:

First step Set up an environment for cross-platform mobile development

Second step Create your first app that works both on Android and iOS with the IDE

Third step Add dependencies to your project

Fourth step Upgrade your app

Fifth step Wrap up your project

Next step

Start by setting up an environment for Kotlin Multiplatform Mobile development.

Proceed to the next part

See also

If you want to convert your existing Android project into a cross-platform app, follow these steps to make it work on iOS:

First step Set up an environment for cross-platform mobile development

Second step Complete this tutorial to make your Android app cross-platform

Join the community