Kotlin 多平台移动端入门
Kotlin Multiplatform Mobile is in Beta. It's almost stable, but migration steps might be required in the future.
- Check out our Kotlin Multiplatform Mobile Beta blogpost to learn about the current state and future plans for the technology.
- You can also see how different companies are already using 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. 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:
Set up an environment for cross-platform mobile development
Create your first app that works both on Android and iOS with the IDE
Add dependencies to your project
Next step
Start by setting up an environment for Kotlin Multiplatform Mobile development.
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:
Set up an environment for cross-platform mobile development
Complete this tutorial to make your Android app cross-platform
Join the community
Kotlin Slack: get an invitation and join the #multiplatform channel
Stack Overflow: subscribe to the "kotlin-multiplatform" tag
Kotlin YouTube channel: subscribe and watch videos about Kotlin Multiplatform Mobile