Kotlin logo

Kotlin

A concise multiplatform language developed by JetBrains

Releases

Kotlin 2.4.20 Released

The Kotlin 2.4.20 release is out! Here are the main highlights:

  • Standard library: Support for coroutine stack trace recovery, new functions for checking equality and uniqueness of collection elements, and new overloads for kotlin.test assertion functions.
  • Kotlin/Native: New Swift export features, improved incremental compilation, and automatically generated Package.swift files for SwiftPM dependencies.
  • Kotlin/Wasm: Changes to top-level require() calls in @JsFun declarations, improved companion object initialization order, and support for Wasmtime in the Kotlin Gradle plugin.
  • Kotlin/JS: A new DSL for browser testing, support for exporting suspend lambdas as async functions, and improved exportability of data classes.
  • Gradle: Support for Gradle 9.7.0 and improved reporting in the Problems API.
  • Build tools API: Support for new targets: Kotlin/JS, Kotlin/Wasm, and Kotlin metadata.
  • Kotlin compiler: The `kotlinr` runner command and a separate native image.

For the complete list of changes, see What’s new in Kotlin 2.4.20 or the release notes on GitHub.

How to install Kotlin 2.4.20

The latest version of Kotlin is included in the latest versions of IntelliJ IDEA and Android Studio.

To update to the new Kotlin version, make sure your IDE is updated to the latest version and change the Kotlin version to 2.4.20 in your build scripts.

If you need the command-line compiler, download it from the GitHub release page.

If you run into any problems:

Stay up to date with the latest Kotlin features! Subscribe to receive Kotlin updates by filling out the form at the bottom of this post. ⬇️

Special thanks to our EAP Champions

Further reading