Kotlin 版本发布
We ship different types of releases:
- Feature releases (1.x) that bring major changes in the language.
- Incremental releases (1.x.y) that are shipped between feature releases and include updates in the tooling, performance improvements, and bug fixes.
- Bug fix releases (1.x.yz) that include bug fixes for incremental releases.
For example, for the feature release 1.3 we had several incremental releases including 1.3.10, 1.3.20, and 1.3.70. For 1.3.70, we had 2 bug fix releases – 1.3.71 and 1.3.72.
For each incremental and feature release, we also ship several preview (EAP) versions for you to try new features before they are released. See Early Access Preview for details.
Learn more about types of Kotlin releases and their compatiblity.
更新到新版本
IntelliJ IDEA and Android Studio suggest updating to a new release once it is out. When you accept the suggestion, it automatically updates the Kotlin plugin to the new version. You can check the Kotlin version in Tools | Kotlin | Configure Plugin Updates.
If you have projects created with earlier Kotlin versions, change the Kotlin version in your projects and update kotlinx libraries if necessary – check the recommended versions.
If you are migrating to the new feature release, Kotlin plugin’s migration tools will help you with the migration.
版本发布详情
The following table lists details of latest Kotlin releases.
You can also use preview versions of Kotlin.
| 版本信息 | 版本重点 | 推荐的 kotlinx 库版本 |
|---|---|---|
| 1.4.20 Released: November 23, 2020 Release on GitHub | An incremental release with various improvements such as: - Supporting new JVM features, like string concatenation via invokedynamic - Improved performance and exception handling for KMM projects - Extensions for JDK Path: Path(“dir”) / “file.txt” Learn more in: - Release blog post - What’s new in Kotlin 1.4.20 |
- kotlinx.serialization version: 1.0.1 - kotlinx.coroutines version: 1.4.1 - kotlinx.atomicfu version: 0.14.4 - ktor version: 1.4.1 - kotlinx.html version: 0.7.2 - kotlinx-nodejs version: 0.0.6 The versions of libraries from kotlin-wrappers (such as kotlin-react) can be found in the corresponding repository. |
| 1.4.10 发布于:2020-09-07 GitHub 上的版本发布 | A bug fix release for Kotlin 1.4.0. Learn more about Kotlin 1.4.0. | - kotlinx.serialization version: 1.0.0-RC - kotlinx.coroutines version: 1.3.9 - kotlinx.atomicfu version: 0.14.4 - ktor version: 1.4.0 - kotlinx.html version: 0.7.2 - kotlinx-nodejs version: 0.0.6 The versions of libraries from kotlin-wrappers (such as kotlin-react) can be found in the corresponding repository. |
| 1.4.0 发布于:2020-08-17 GitHub 上的版本发布 | A feature release with many features and improvements that mostly focus on quality and performance. Learn more in: - Release blog post - What’s new in Kotlin 1.4.0 - Compatibility Guide - Migrating to Kotlin 1.4.0 | - kotlinx.serialization version: 1.0.0-RC - kotlinx.coroutines version: 1.3.9 - kotlinx.atomicfu version: 0.14.4 - ktor version: 1.4.0 - kotlinx.html version: 0.7.2 - kotlinx-nodejs version: 0.0.6 The versions of libraries from kotlin-wrappers (such as kotlin-react) can be found in the corresponding repository. |
| 1.3.72 发布于:2020-04-15 GitHub 上的版本发布 | A bug fix release for Kotlin 1.3.70. Learn more about Kotlin 1.3.70. | - kotlinx.serialization version: 0.20.0 - kotlinx.coroutines version: 1.3.8 - kotlinx.atomicfu version: 0.14.2 - ktor version: 1.3.2 - kotlinx.html version: 0.7.1 - kotlinx-nodejs version: 0.0.3 The versions of libraries from kotlin-wrappers (such as kotlin-react) can be found in the corresponding repository. |
On the JVM, you usually can use library versions other than the recommended ones.
