Multiplatform
Share code between Android and Jvm in Kotlin multiplatform
·3 mins
Android
Kotlin
Multiplatform
Code Sharing
Gradle
While Android supports most Java language features, it doesn’t support every API that Java provides. On the other hand, Kotlin multiplatform only allows sharing code across all targets (commonMain), not a subset of targets (commonJvm).