Kotlin Help

Supported platforms

Kotlin supports the following platforms and provides target presets for each platform. See how to use a target preset.

Target platformTarget presetComments

Select the execution environment:

  • browser {} for applications running in the browser.

  • nodejs{} for applications running on Node.js.

Learn more in Setting up a Kotlin/JS project.

Android applications and librariesandroid

Manually apply an Android Gradle plugin – com.android.application or com.android.library.

You can only create one Android target per Gradle subproject.

Android NDKandroidNativeArm32, androidNativeArm64

The 64-bit target requires a Linux or macOS host.

You can build the 32-bit target on any supported host.

iOSiosArm32, iosArm64, iosX64, iosSimulatorArm64Requires a macOS host.
watchOSwatchosArm32, watchosArm64, watchosX86, watchosX64, watchosSimulatorArm64Requires a macOS host.
tvOStvosArm64, tvosX64, tvosSimulatorArm64Requires a macOS host.
macOSmacosX64, macosArm64Requires a macOS host.
LinuxlinuxArm64, linuxArm32Hfp, linuxMips32, linuxMipsel32, linuxX64

Linux MIPS targets (linuxMips32 and linuxMipsel32) require a Linux host.

You can build other Linux targets on any supported host.

WindowsmingwX64, mingwX86Requires a Windows host.
Last modified: 25 August 2021