Kotlin 多平台移动端入门

Kotlin Multiplatform Mobile is in Alpha. Language features and tooling may change in future Kotlin versions.

Beta is expected in spring 2022. Check out Kotlin Multiplatform Mobile Beta Roadmap Video Highlights to learn about upcoming features. You can also see how different companies already use Kotlin for cross-platform app development.

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. For example, to implement a native UI or when working with platform-specific APIs.

Watch the introductory video, in which Kotlin Product Marketing Manager Ekaterina Petrova explains what Kotlin Multiplatform Mobile is and how to use it in your project. With Ekaterina, you'll set up an environment and prepare to create your first cross-platform mobile application:

YouTube 视频:Meet Kotlin Multiplatform Mobile!

You can also check out other videos about Kotlin Multiplatform Multiverse on YouTube.

Supported platforms

  • Android applications and libraries
  • Android NDK (ARM64 and ARM32)
  • Apple iOS devices (ARM64 and ARM32) and simulators
  • Apple watchOS devices (ARM64 and ARM32) and simulators

Kotlin Multiplatform technology also supports other platforms, including JavaScript, Linux, Windows, and WebAssembly.

Start from scratch

Make your Android application work on iOS

If you already have an Android mobile application and want to make it cross-platform, here are some resources to help you get started:

Get help