Kotlin logo

Kotlin

A concise multiplatform language developed by JetBrains

Releases

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-local break and continue, 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

  • 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 AhmadAndrei ShikovSonya ValchukTroels Bjerre LundJinseong JeonChuck JazdzewskiJaebaek SeoRafal GalczakXYZboomBen Trengrove, Michał Pociecha-Łoś, wrongwrongAlex KozminykhTing-Yuan HuangXin Wangisuckatcs0xeraAurimas, Daniil Beliak, Jake WhartonJerome PrinetJulien DramaixLamTrinh.DevNicklas AnsmanNicolasRoelandtOleg SmirnovOmar IsmailRick ClephasZongle Wangxiaobailong24

Special thanks to our EAP Champions 🥇👏

What else to read and watch

image description