Trending:

Kotlin 2.4.20 Released with Multiplatform Studio of Updates

Prepared with AI assistance from source material. An individual human editorial review is not recorded for this archive article. The named archive byline has not been independently verified by TechStaged. Editorial policy and corrections.

Kotlin 2.4.20 release highlights across multiplatform toolchains
TechStaged-owned

Summary

  • Kotlin 2.4.20 release is out.
  • Standard library adds coroutine stack trace recovery, new collection element equality/uniqueness helpers, and new kotlin.test assertion overloads.
  • Kotlin/Native adds Swift export features, improved incremental compilation, and automatically generated Package.swift files for SwiftPM dependencies.

JetBrains has released Kotlin 2.4.20, the latest version of the concise multiplatform language.

The release covers updates across Kotlin/Native, Kotlin/Wasm, Kotlin/JS, Gradle, and the language compiler.

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

STANDARD LIBRARY ENHANCEMENTS

The standard library adds coroutine stack trace recovery, new functions for checking equality and uniqueness of collection elements, and new overloads for kotlin.test assertion functions. TechStaged has also covered Lyria 3.5 Arrives in Google Gemini App and API, Promising Higher-Fidelity Music Creation.

  • Coroutine stack trace recovery support
  • New collection element equality and uniqueness helpers
  • Additional overloads for kotlin.test assertions

KOTLIN/NATIVE UPDATES

Kotlin/Native introduces Swift export features, improved incremental compilation, and automatically generated Package.swift files for SwiftPM dependencies.

  • Swift export features
  • Improved incremental compilation
  • Automatically generated Package.swift for SwiftPM

KOTLIN/WASM IMPROVEMENTS

Kotlin/Wasm includes changes to top-level require() calls in @JsFun declarations, improved companion object initialization order, and Wasmtime support in the Kotlin Gradle plugin.

  • Top-level require() changes in @JsFun
  • Improved companion object initialization order
  • Wasmtime support in Kotlin Gradle plugin

KOTLIN/JS ENHANCEMENTS

Kotlin/JS introduces a new DSL for browser testing, support for exporting suspend lambdas as async functions, and improved exportability of data classes.

  • New DSL for browser testing
  • Export suspend lambdas as async functions
  • Improved exportability of data classes

GRADLE AND BUILD TOOLS UPGRADES

Gradle now supports Gradle 9.7.0 and offers improved reporting in the Problems API.

The Build tools API adds support for new targets: Kotlin/JS, Kotlin/Wasm, and Kotlin metadata.

  • Gradle 9.7.0 compatibility
  • Problems API reporting improvements
  • New Build tools targets: Kotlin/JS, Kotlin/Wasm, Kotlin metadata

COMPILER AND TOOLING

The Kotlin compiler includes the kotlinr runner command and a separate native image.

  • kotlinr runner command
  • Separate native image

HOW TO UPDATE

To update to Kotlin 2.4.20, ensure your IDE is updated to the latest version and set the Kotlin version to 2.4.20 in your build scripts.

  • Update IDE to latest version (IntelliJ IDEA / Android Studio)
  • Set Kotlin version to 2.4.20 in build scripts