Kotlin 2.4, 2.4.21 and the road to 2.5
Short answer: the latest stable Kotlin is 2.4.21, a bug fix release for 2.4.20 published on October 8, 2026, and Kotlin 2.5.0-Beta1 has been out since September 23. The 2.4 line started with Kotlin 2.4.0 on June 3, 2026, which made context parameters and explicit backing fields stable. JetBrains plans Kotlin 2.5.0 for December 2026 and 2.5.20 for March 2027. To update, change the Kotlin Gradle plugin version to 2.4.21 in your build scripts and use a current IntelliJ IDEA or Android Studio.
Kotlin releases and plans
From kotlinlang.org «Kotlin releases», read 14 October 2026. Planned dates can move.
| Version | Date | Type |
|---|---|---|
| 2.3.0 | December 16, 2025 | Language release |
| 2.4.0 | June 3, 2026 | Language release |
| 2.4.10 | July 14, 2026 | Bug fix release |
| 2.4.20 | September 7, 2026 | Tooling release |
| 2.5.0-Beta1 | September 23, 2026 | Preview (EAP) |
| 2.4.21 | October 8, 2026 | Bug fix release for 2.4.20 |
| 2.5.0 | Planned for December 2026 | Language release |
| 2.5.20 | Planned for March 2027 | Tooling release |
What Kotlin 2.4.0 made stable
In the language: context parameters, except context arguments and callable references, the @all meta-target for properties, new defaulting rules for annotation use-site targets, and explicit backing fields. In the standard library, the common UUID API and sorted-order checks are stable. Kotlin/JVM supports Java 26, and Gradle compatibility reaches 9.5.0. New experimental pieces include collection literals with [] brackets, explicit context arguments, and an @IntroducedAt annotation for version-based overloads. On the Apple side, Kotlin Multiplatform projects can declare Swift packages as dependencies, and Swift export moved to Alpha.
What Kotlin 2.4.20 adds
On the JVM, compiling when expressions with invokedynamic on JVM 21 and later is now stable and on by default. The standard library adds a StackTraceRecoverable interface so exceptions with extra constructor arguments keep useful coroutine stack traces, plus experimental allDistinct() and allDistinctBy() checks and new kotlin.test overloads. Swift export now maps sealed classes and interfaces to Swift enums, so switches in Xcode can be exhaustive, and supports cross-language inheritance; assembleSharedXCFramework generates a Package.swift for SwiftPM dependencies. Incremental compilation of klibs is in Beta behind kotlin.incremental.native=true. Kotlin/Wasm can run wasmWasi on Wasmtime, and Gradle support reaches 9.7.0. The compiler gains a kotlinr runner command.
What’s in Kotlin 2.5.0-Beta1
The first 2.5 preview arrived on September 23, 2026. Two language features become stable: name-based destructuring in only-syntax mode and improved compile-time constants, both experimental in 2.3.20 and 2.4.0. New and experimental: companion blocks and extensions, a companion modifier for top-level extensions and companion {} blocks that declare members reachable through the type name without a companion object (opt in with -Xcompanion-blocks-and-extensions), and the standard library functions onTrue(), onFalse() and ifOrNull(). Kotlin/JS gains an es2020 target, klib compilation inlines across modules by default, and type inference does less work, which can change inferred types in edge cases. The compiler now warns when it runs on JDK 8, the first step toward requiring JDK 17. To try it, set the version to 2.5.0-Beta1 with a current IntelliJ IDEA or Android Studio.
How to update, and what changes for Android
Set the plugin version to 2.4.21, for example kotlin("jvm") version "2.4.21" or the matching entry in your version catalog, and update your IDE. On Android, AGP 9’s built-in Kotlin already depends on the Kotlin Gradle plugin 2.2.10; to use 2.4.20, declare the newer plugin in your top-level buildscript classpath as Google describes. Check the Wasm notes before updating if you use require() inside @JsFun: it now reports an error, and JetBrains points to @JsModule instead. The Gradle and AGP versions each KGP release supports are in the Kotlin Gradle plugin compatibility matrix.
Support windows
Kotlin ships a language release every six months and a tooling release three months after each. From 2.4.0, each release line of the JVM standard library has an 18-month support window: the 2.4 line is supported until December 3, 2027. Security fixes are built on the latest release of a line, so on the 2.4 line they would come as an update to 2.4.20, not to 2.4.0.
Where Censuus fits
New language features help you ship; being found brings people to what you ship. Censuus ranks apps by the visits they draw, and adding your app is free through the List my app form. Placement comes from traffic and sponsorship: apps climb on the visits they draw, and a sponsor can pay to rise higher. For shared UI on iOS, see Compose Multiplatform and Liquid Glass, and for navigation, Navigation 3.
Frequently asked questions
What’s new in Kotlin 2.5?
In 2.5.0-Beta1: stable name-based destructuring and improved compile-time constants, experimental companion blocks and extensions, experimental onTrue, onFalse and ifOrNull in the standard library, an es2020 target for Kotlin/JS, and a warning when the compiler runs on JDK 8.
What is the latest version of Kotlin?
Kotlin 2.4.21, a bug fix release for 2.4.20, published on October 8, 2026. Kotlin 2.5.0-Beta1 is available as a preview.
When is Kotlin 2.5 released?
JetBrains plans Kotlin 2.5.0 for December 2026 and Kotlin 2.5.20 for March 2027. The first preview, 2.5.0-Beta1, came out on September 23, 2026.
When was Kotlin 2.4 released?
Kotlin’s releases page lists Kotlin 2.4.0 on June 3, 2026, followed by 2.4.10 on July 14, 2.4.20 on September 7 and 2.4.21 on October 8, 2026.
Are context parameters stable?
Yes, since Kotlin 2.4.0, except for context arguments and callable references. Explicit context arguments arrived as a new feature in the same release.
What’s new in Swift export in Kotlin 2.4.20?
Sealed classes and interfaces map to Swift enums for exhaustive switches, cross-language inheritance is supported, and a Package.swift is generated for SwiftPM dependencies when you build an XCFramework.
How long is a Kotlin version supported?
From Kotlin 2.4.0, each release line of the JVM standard library gets 18 months of support. The 2.4 line ends on December 3, 2027.
Guides for app developers
Put your app in the ranking
Censuus ranks apps by the visits they draw and by sponsorship, no bots. Listing is free; sponsorship raises placement.