Kotlin 2.4.20 Released
Summary
The Kotlin 2.4.20 release is out! Here are the main highlights: 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 […]
Original Text
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:
Find help on Slack (get an invite).
Report issues to our issue tracker, YouTrack.
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
Zac Sweers
Alexander Nozik
Benoit Lubek
Yang
Rick Clephas
Johannes Svensson
Łukasz Wasylkowski
Sterling Albury
David Lopez
Florian Schreiber
Sechaba Mofokeng
Bernd Prünster
Anderson Lameck
Dayan Ruben
Josh Stagg
Yuri Geronimus
Sergey Chernov
Ivan Canet
Olaf Gottschalk
Mohamed Rejeb
Further reading
What’s new in Kotlin 2.4.20 documentation
Kotlin 2.4 compatibility guide
Kotlin EAP Champions
Lotu Radar provides attributed news summaries and links to the original publisher. Full reporting and copyright remain with the source.