Kotlin
A concise multiplatform language developed by JetBrains
Kotlin 2.1.0 Released
The Kotlin 2.1.0 release is out! This version introduces new language features, tooling updates, performance improvements, and important fixes. Here are some additional highlights from this release:
- New language features in preview: Guard conditions in
when
with a subject, non-localbreak
andcontinue
, and multi-dollar string interpolation. - K2 compiler updates: More flexibility around compiler checks and improvements to the kapt implementation.
- Kotlin Multiplatform: Stable Gradle DSL for compiler options and many other improvements.
- Kotlin/Native: Improved support for
iosArm64
and other updates. - Kotlin/Wasm: Multiple updates, including support for incremental compilation.
- Gradle support: Improved compatibility with newer versions of Gradle and the Android Gradle plugin, along with updates to the Kotlin Gradle plugin API.
For the complete list of changes, refer to What’s new in Kotlin 2.1.0 or the release notes on GitHub.
Join the Kotlin 2.1.0 Livestream
Do you want to learn more about these updates? Join the Kotlin Language Evolution team live as they discuss the new features and answer your questions.
Save the date: November 28, 2024, at 4:00 PM UTC.
If you can’t make it, the recording will be available afterward.
How to install Kotlin 2.1.0
Starting from IntelliJ IDEA 2023.3 and Android Studio Iguana (2023.2.1) Canary 15, the Kotlin plugin is distributed as a bundled plugin included in your IDE. This means that you can’t install the plugin from JetBrains Marketplace anymore.
To update to the new Kotlin version, change the Kotlin version to 2.1.0 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. ⬇️
Top issue reporters from YouTrack
Jinseong Jeon (44 issues), Andreas Malik (28 issues), Jaebaek Seo (23 issues), Ivan Canet (15 issues), subeer verma (15 issues), Omar Ismail (14 issues), Thodoris Sotiropoulos (13 issues), Andy Magee (12 issues), Nick Reid (12 issues), liutikas (11 issues), pyos (11 issues), Bernhard Posselt (11 issues), Philip Wedemann (10 issues), whooo (10 issues), Matthew Groth (10 issues), Andrei Shikov (10 issues), Ben Woodworth (10 issues), Martin Bonnin (10 issues), David Akehurst (10 issues), Edoardo Luppi (10 issues).
External contributors
We’d like to thank all of our contributors whose pull requests were included in this release: Osama Ahmad, Andrei Shikov, Sonya Valchuk, Troels Bjerre Lund, Jinseong Jeon, Chuck Jazdzewski, Jaebaek Seo, Rafal Galczak, XYZboom, Ben Trengrove, Michał Pociecha-Łoś, wrongwrong, Alex Kozminykh, Ting-Yuan Huang, Xin Wang, isuckatcs, 0xera, Aurimas, Daniil Beliak, Jake Wharton, Jerome Prinet, Julien Dramaix, LamTrinh.Dev, Nicklas Ansman, NicolasRoelandt, Oleg Smirnov, Omar Ismail, Rick Clephas, Zongle Wang, xiaobailong24
Special thanks to our EAP Champions 🥇👏
- David Lopez
- Florian Schreiber
- Yang
- Rick Clephas
- Zac Sweers
- Benoit ‘BoD’ Lubek
- Johannes Svensson
- Sterling Albury
- Sechaba Mofokeng
- Bernd Prünster
- Russel Wolf
- Mohamed Rejeb
- Jake Wharton
- Łukasz Wasylkowski
- Artyom Shendrik
- Manuel Ernesto
- Kacper Wojciechowski
- Anderson Lameck
- Alexander Nozik
What else to read and watch
- What’s new in Kotlin 2.1.0 documentation
- Kotlin 2.1.0 compatibility guide
- K2 compiler migration guide
- K2 Compiler Performance Benchmarks and How to Measure Them on Your Projects
- Kotlin EAP Champions