# Kotlin 语言参考文档 中文版 Documentation ## Topics - [Kotlin 语言参考文档](home.html.md) - [关于翻译](about-translation.html.md) - [Kotlin 入门](getting-started.html.md) - [欢迎参加我们的 Kotlin 观光之旅!](kotlin-tour-welcome.html.md): 完成 Kotlin 观光之旅, 快速掌握 Kotlin 编程语言的基础知识. - [Hello world](kotlin-tour-hello-world.html.md) - [基本类型](kotlin-tour-basic-types.html.md) - [集合(Collection)](kotlin-tour-collections.html.md) - [控制流](kotlin-tour-control-flow.html.md) - [函数](kotlin-tour-functions.html.md) - [类](kotlin-tour-classes.html.md) - [Null 值安全性](kotlin-tour-null-safety.html.md) - [扩展函数](kotlin-tour-intermediate-extension-functions.html.md) - [作用域函数(Scope Function)](kotlin-tour-intermediate-scope-functions.html.md) - [带接受者的 Lambda 表达式](kotlin-tour-intermediate-lambdas-receiver.html.md) - [类与接口](kotlin-tour-intermediate-classes-interfaces.html.md) - [对象](kotlin-tour-intermediate-objects.html.md) - [开放类与特殊类](kotlin-tour-intermediate-open-special-classes.html.md) - [属性](kotlin-tour-intermediate-properties.html.md) - [Null 值安全性](kotlin-tour-intermediate-null-safety.html.md) - [库与 API](kotlin-tour-intermediate-libraries-and-apis.html.md) - [Kotlin 2.4.20 中的新功能](whatsnew2420.html.md): Read the Kotlin 2.4.20 release notes covering new experimental features and updates to the standard library, Native, Wasm, JS, Gradle, BTA, and the Kotlin compiler - [Kotlin 2.4.20-RC3 版中的新功能](whatsnew-eap.html.md) - [Kotlin 2.4.0 中的新功能](whatsnew24.html.md): 阅读 Kotlin 2.4.0 发布说明, 包括新的语言功能特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.4.x 兼容性指南](compatibility-guide-24.html.md) - [基本语法概述](basic-syntax.html.md) - [关键字与操作符](keyword-reference.html.md) - [包(Package)与导入(Import)](packages.html.md) - [注解](annotations.html.md) - [可见度修饰符](visibility-modifiers.html.md) - [编码规约](coding-conventions.html.md) - [惯用法](idioms.html.md) - [类型概述](types-overview.html.md) - [数值类型](numbers.html.md) - [无符号整数(Unsigned Integer)类型](unsigned-integer-types.html.md) - [布尔(Boolean)类型](booleans.html.md) - [字符](characters.html.md) - [字符串](strings.html.md) - [数组](arrays.html.md) - [类型检查与类型转换](typecasts.html.md) - [类型别名](type-aliases.html.md) - [条件与循环](control-flow.html.md) - [返回与跳转: break 与 continue](returns.html.md) - [异常(Exception) 与错误处理](exceptions.html.md): 学习 Kotlin 如何使用异常来处理运行期错误. - [函数](functions.html.md) - [高阶函数与 Lambda 表达式](lambdas.html.md) - [类型安全的构建器](type-safe-builders.html.md) - [通过构建器类型推断(Builder Type Inference)使用构建器](using-builders-with-builder-inference.html.md) - [上下文参数(Context Parameter)](context-parameters.html.md) - [内联函数(Inline Function)](inline-functions.html.md) - [操作符重载](operator-overloading.html.md) - [未使用的返回值检查器](unused-return-value-checker.html.md) - [类](classes.html.md) - [数据类(Data Class)](data-classes.html.md) - [扩展](extensions.html.md) - [接口(Interface)](interfaces.html.md) - [委托](delegation.html.md) - [继承](inheritance.html.md) - [对象声明与对象表达式](object-declarations.html.md) - [this 表达式](this-expressions.html.md) - [封闭类(Sealed Class)与封闭接口(Sealed Interface)](sealed-classes.html.md) - [枚举类](enum-classes.html.md) - [内联的值类(Inline value class)](inline-classes.html.md) - [嵌套类与内部类](nested-classes.html.md) - [函数式 (SAM) 接口](fun-interfaces.html.md) - [属性(Property)](properties.html.md) - [委托属性](delegated-properties.html.md) - [Null 值安全性](null-safety.html.md) - [相等判断](equality.html.md) - [泛型(Generic): in, out, where](generics.html.md) - [异步编程(Asynchronous Programming)技术](async-programming.html.md) - [协程(Coroutine)](coroutines-overview.html.md) - [反射](reflection.html.md) - [解构声明](destructuring-declarations.html.md) - [使用 Kotlin 进行后端开发](server-overview.html.md): 使用 Kotlin, Spring, Ktor 以及其它后端框架构建服务器应用程序 - [教程 - 向 Java 项目添加 Kotlin](mixing-java-kotlin-intellij.html.md): 将 Kotlin 集成到现有的 Java 项目中 - 配置 Maven 或 Gradle 构建文件, 组织源代码文件, 并在 IntelliJ IDEA 中将 Java 代码转换为 Kotlin. - [教程 - 使用 Kotlin 和 JUnit 测试 Java 代码](jvm-test-using-junit.html.md): 设置使用 Maven 或 Gradle 构建的 Java 项目, 集成使用 Kotlin 编写的 JUnit 测试. - [使用 Maven 测试 Kotlin 项目](jvm-test-maven.html.md) - [在 Kotlin 项目中使用注解处理器](jvm-annotation-processors.html.md) - [Code quality tools in Kotlin projects](jvm-code-analysis.html.md): Learn how to integrate code quality tools like ktlint, detekt, SonarQube, SonarCloud, and Kover into your Kotlin backend projects. - [Spring Boot 和 Kotlin 入门](jvm-get-started-spring-boot.html.md): Spring Boot 和 Kotlin 入门. 使用 Kotlin 创建一个 Spring Boot 应用程序. - [使用 Kotlin 创建 Spring Boot 项目](jvm-create-project-with-spring-boot.html.md): 使用 Kotlin 和 IntelliJ IDEA 创建一个 Spring Boot 应用程序. - [向 Spring Boot 项目添加数据类](jvm-spring-boot-add-data-class.html.md): 向 Spring Boot 项目添加 Kotlin 数据类. - [为 Spring Boot 项目添加数据库支持](jvm-spring-boot-add-db-support.html.md): 使用 JDBC Template, 为使用 Kotlin 开发的 Sprint Boot 项目添加数据库支持. - [使用 Spring Data CrudRepository 进行数据库访问](jvm-spring-boot-using-crudrepository.html.md): 在 Kotlin 编写的 Spring Boot 项目中使用 Spring Data 接口. - [使用 Spring Boot 和 Claude 创建任务管理应用程序](spring-boot-claude.html.md): 学习如何使用 Claude 和 Spring Boot 创建 Kotlin 应用程序. - [概述](web-overview.html.md) - [Kotlin/JavaScript](js-overview.html.md) - [Kotlin/JS 入门](js-get-started.html.md) - [设置 Kotlin/JS 工程(Project)](js-project-setup.html.md) - [运行 Kotlin/JS 代码](running-kotlin-js.html.md) - [开发服务器(Development server)与持续编译(Continuous Compilation)](dev-server-continuous-compilation.html.md) - [调试 Kotlin/JS 代码](js-debugging.html.md) - [在 Kotlin/JS 平台进行测试](js-running-tests.html.md) - [Kotlin/JS 框架](js-frameworks.html.md) - [Kotlin/JS 编译器功能特性](js-ir-compiler.html.md) - [JS Plain Objects 编译器插件](js-plain-objects.html.md) - [教程 - 使用 React 和 Kotlin/JS 创建 Web 应用程序](js-react.html.md) - [Kotlin/Wasm](wasm-overview.html.md) - [Kotlin/Wasm 与 Compose Multiplatform 入门](wasm-get-started.html.md) - [Kotlin/Wasm 与 WASI 入门](wasm-wasi.html.md) - [调试 Kotlin/Wasm 代码](wasm-debugging.html.md) - [与 JavaScript 交互](wasm-js-interop.html.md) - [支持的版本与配置](wasm-configuration.html.md) - [Kotlin Multiplatform 入门](get-started.html.md) - [Kotlin Multiplatform 快速入门](quickstart.html.md): JetBrains provides official Kotlin IDE support for IntelliJ IDEA and Android Studio. - [What is Kotlin Multiplatform](kmp-overview.html.md) - [支持的各个平台的稳定性](supported-platforms.html.md) - [Kotlin Multiplatform 简介](multiplatform-intro.html.md) - [Kotlin Multiplatform 项目结构的基础知识](multiplatform-discover-project.html.md) - [跨平台项目结构的高级概念](multiplatform-advanced-project-structure.html.md) - [在不同的平台之间共用代码](multiplatform-share-on-platforms.html.md) - [预期声明与实际声明](multiplatform-expect-actual.html.md) - [连接平台相关的 API](multiplatform-connect-to-apis.html.md) - [层级项目结构](multiplatform-hierarchy.html.md) - [添加跨平台库依赖项](multiplatform-add-dependencies.html.md) - [添加 Android 依赖项](multiplatform-android-dependencies.html.md) - [添加 iOS 依赖项](multiplatform-ios-dependencies.html.md) - [与 iOS 集成的方法](multiplatform-ios-integration-overview.html.md) - [直接集成](multiplatform-direct-integration.html.md) - [Swift 包导出的设置](multiplatform-spm-export.html.md) - [将 Swift 包添加为 KMP 模块的依赖项](multiplatform-spm-import.html.md) - [CocoaPods 概述与设置](multiplatform-cocoapods-overview.html.md) - [添加 Pod 库依赖项](multiplatform-cocoapods-libraries.html.md) - [将 Kotlin Gradle 项目用作 CocoaPods 依赖项](multiplatform-cocoapods-xcode.html.md) - [CocoaPods Gradle plugin DSL 参考文档](multiplatform-cocoapods-dsl-reference.html.md) - [在本地 Swift 包中使用 Kotlin](multiplatform-spm-local-integration.html.md) - [配置编译任务](multiplatform-configure-compilations.html.md) - [构建最终的原生二进制文件](multiplatform-build-native-binaries.html.md) - [发布跨平台的库](multiplatform-publish-lib-setup.html.md) - [教程: 将你的库发布到 Maven Central](multiplatform-publish-libraries-to-maven.html.md) - [iOS App 的隐私清单(Privacy Manifest)](multiplatform-privacy-manifest.html.md) - [Compose Hot Reload](compose-hot-reload.html.md) - [跨平台程序的 Gradle DSL 参考文档](multiplatform-dsl-reference.html.md) - [Android 源代码集布局](multiplatform-android-layout.html.md) - [Kotlin Multiplatform 兼容性指南](multiplatform-compatibility-guide.html.md) - [Kotlin Multiplatform IDE Plugin 的发布版本](multiplatform-plugin-releases.html.md) - [跨平台移动应用程序开发](cross-platform-mobile-development.html.md) - [原生(Native)应用程序开发与跨平台(cross-platform)移动应用程序开发: 如何选择?](native-and-cross-platform.html.md) - [跨平台应用程序开发最流行的 6 种框架](cross-platform-frameworks.html.md) - [Kotlin/Native](native-overview.html.md) - [Kotlin/Native 入门](native-get-started.html.md) - [Kotlin/Native 库](native-libraries.html.md) - [平台库](native-platform-libs.html.md) - [Kotlin/Native 内存管理](native-memory-manager.html.md) - [与 Swift/Objective-C ARC 集成](native-arc-integration.html.md) - [迁移到新的内存管理器](native-migration-guide.html.md) - [Kotlin/Native 二进制文件选项](native-binary-options.html.md) - [调试 Kotlin/Native 代码](native-debugging.html.md) - [Kotlin/Native 支持的编译目标与主机](native-target-support.html.md) - [改善编译速度的技巧](native-improving-compilation-time.html.md) - [自定义 LLVM 后端的技巧](native-llvm-passes.html.md) - [Kotlin/Native 二进制文件的许可证](native-binary-licenses.html.md) - [Kotlin/Native FAQ](native-faq.html.md) - [使用 Kotlin 进行 Android 开发](android-overview.html.md) - [库开发者指南简介](api-guidelines-introduction.html.md) - [减少认知复杂度 (Mental Complexity) 概述](api-guidelines-minimizing-mental-complexity.html.md) - [简单性](api-guidelines-simplicity.html.md) - [可读性](api-guidelines-readability.html.md) - [一致性](api-guidelines-consistency.html.md) - [可预测性](api-guidelines-predictability.html.md) - [可调试性](api-guidelines-debuggability.html.md) - [可测试性](api-guidelines-testability.html.md) - [针对库开发者的向后兼容性(Backward Compatibility) 指南](api-guidelines-backward-compatibility.html.md) - [针对库开发者的创建信息丰富的文档的最佳实践](api-guidelines-informative-documentation.html.md) - [构建跨平台的 Kotlin 库](api-guidelines-build-for-multiplatform.html.md) - [教程 - Kotlin 自定义脚本(Custom Scripting) 入门](custom-script-deps-tutorial.html.md) - [支持 Kotlin 开发的 IDE](kotlin-ide.html.md): JetBrains 为 IntelliJ IDEA, Android Studio, 和 Visual Studio Code 提供了官方的 Kotlin IDE 支持. - [Kotlin 语言服务器(Language Server)](kotlin-lsp.html.md): Kotlin 语言服务器(Language Server) 是 JetBrains 针对 Kotlin 的官方 LSP 实现, 支持 VS Code, 代码完成, 诊断, 格式化, 以及重构. - [介绍](dokka-introduction.html.md) - [Dokka 入门](dokka-get-started.html.md) - [Gradle](dokka-gradle.html.md) - [Dokka Gradle 配置选项](dokka-gradle-configuration-options.html.md) - [Dokka Gradle 的问题与解决方案](dokka-gradle-troubleshooting-md.html.md) - [迁移到 Dokka Gradle plugin v2](dokka-migration.html.md) - [Maven](dokka-maven.html.md) - [CLI](dokka-cli.html.md) - [HTML](dokka-html.html.md) - [Javadoc](dokka-javadoc.html.md) - [Dokka Plugin](dokka-plugins.html.md) - [模块文档](dokka-module-and-package-docs.html.md) - [运行代码片段](run-code-snippets.html.md) - [为 Kotlin 代码编写文档: KDoc](kotlin-doc.html.md) - [Kotlin 与 OSGi](kotlin-osgi.html.md) - [使用 TeamCity 对 Kotlin 项目进行持续集成(Continuous Integration)](kotlin-and-ci.html.md) - [迁移到 Kotlin 编码风格](code-style-migration-guide.html.md) - [与 Java 比较](comparison-to-java.html.md) - [在 Kotlin 中调用 Java 代码](java-interop.html.md) - [在 Java 中调用 Kotlin 代码](java-to-kotlin-interop.html.md) - [在 Kotlin 中使用 Java 记录类(Record)](jvm-records.html.md) - [Java 和 Kotlin 中的字符串](java-to-kotlin-idioms-strings.html.md): 学习如何将 Java 字符串迁移到 Kotlin 字符串. 这篇向导讨论 Java StringBuilder, 字符串拼接和切分, 多行字符串, 流, 以及其它问题.) - [Java 和 Kotlin 中的集合(Collection)](java-to-kotlin-collections-guide.html.md): 学习如何将 Java 的集合迁移到 Kotlin 集合. 这篇向导讨论 Kotlin 和 Java 中的这类数据结构, 包括 List, ArrayList, Map, Set, 等等) - [Java 和 Kotlin 中的可空性(Nullability)](java-to-kotlin-nullability-guide.html.md): 学习如何将 Java 的可空结构迁移到 Kotlin. 这篇向导讨论 Kotlin 中对可空类型的支持, Kotlin 如何处理来自 Java 的可空注解, 等等. - [标准输入(Standard Input)](standard-input.html.md) - [浏览器与 DOM API](browser-api-dom.html.md) - [在 Kotlin 中使用 JavaScript 代码](js-interop.html.md) - [动态类型](dynamic-type.html.md) - [使用 npm 中的依赖项](using-packages-from-npm.html.md) - [在 JavaScript 中使用 Kotlin 代码](js-to-kotlin-interop.html.md) - [JavaScript 模块](js-modules.html.md) - [Kotlin/JS 的反射(Reflection)](js-reflection.html.md) - [类型安全的 HTML DSL](typesafe-html-dsl.html.md) - [与 Swift/Objective-C 代码交互](native-objc-interop.html.md) - [教程 - 使用 Kotlin/Native 开发 Apple Framework](apple-framework.html.md) - [使用 Swift export 与 Swift 互操作](native-swift-export.html.md) - [与 C 代码交互](native-c-interop.html.md) - [教程 - 映射 C 语言的基本数据类型](mapping-primitive-data-types-from-c.html.md) - [教程 - 映射 C 语言的结构(Struct)和联合(Union)类型](mapping-struct-union-types-from-c.html.md) - [教程 - 映射 C 语言的函数指针(Function Pointer)](mapping-function-pointers-from-c.html.md) - [教程 - 映射 C 语言的字符串](mapping-strings-from-c.html.md) - [教程 - 使用 Kotlin/Native 开发动态库](native-dynamic-libraries.html.md) - [教程 - 使用 C interop 和 libcurl 创建应用程序](native-app-with-c-and-libcurl.html.md) - [定义文件](native-definition-file.html.md) - [C, Objective-C 和 Swift 库的导入](native-lib-import-stability.html.md) - [Kotlin AI 技能(Skill)](kotlin-ai-skills.html.md) - [使用 Kotlin 进行 AI 应用程序开发](kotlin-ai-apps-development-overview.html.md): 学习 Koog 如何帮助你使用 Kotlin 构建 AI 应用程序. - [教程 - 使用 Spring AI 创建一个回答问题的 Kotlin 应用程序](spring-ai-guide.html.md): 学习如何使用 Spring AI 创建一个回答问题的 Kotlin 应用程序. - [在数据分析(Data Analysis)中使用 Kotlin](data-analysis-overview.html.md) - [从文件获取数据](data-analysis-work-with-data-sources.html.md) - [从 Web 数据源和 API 获取数据](data-analysis-work-with-api.html.md) - [连接数据库并获取数据](data-analysis-connect-to-db.html.md) - [使用 Kandy 进行数据可视化](data-analysis-visualization.html.md) - [使用 Lets-Plot for Kotlin 进行数据可视化](lets-plot.html.md) - [用于数据分析的 Kotlin 和 Java 库](data-analysis-libraries.html.md) - [Kotlin Notebook](kotlin-notebook-overview.html.md) - [Kotlin Notebook 入门](get-started-with-kotlin-notebooks.html.md) - [设置环境](kotlin-notebook-set-up-env.html.md) - [创建你的第一个 Kotlin Notebook](kotlin-notebook-create.html.md) - [向你的 Kotlin Notebook 添加依赖项](kotlin-notebook-add-dependencies.html.md) - [共享你的 Kotlin Notebook](kotlin-notebook-share.html.md) - [Kotlin Notebook 支持的输出格式](data-analysis-notebooks-output-formats.html.md) - [集合(Collection)概述](collections-overview.html.md) - [创建集合](constructing-collections.html.md) - [迭代器(Iterator)](iterators.html.md) - [排序(Ordering)](collection-ordering.html.md) - [分组(Grouping)](collection-grouping.html.md) - [集合变换操作](collection-transformations.html.md) - [过滤(Filtering)集合](collection-filtering.html.md) - [获取集合的一部分](collection-parts.html.md) - [获取集合的单个元素](collection-elements.html.md) - [集合操作概述](collection-operations.html.md) - [聚合(Aggregate)操作](collection-aggregate.html.md) - [集合写入操作](collection-write.html.md) - [List 相关操作](list-operations.html.md) - [Set 相关操作](set-operations.html.md) - [Map 相关操作](map-operations.html.md) - [加法(Plus)和减法(Minus)操作符](collection-plus-minus.html.md) - [序列(Sequence)](sequences.html.md) - [值范围(Range)与数列(Progression)](ranges.html.md) - [读取标准输入](read-standard-input.html.md) - [明确要求使用者同意的功能(Opt-in Requirement)](opt-in-requirements.html.md) - [作用域函数(Scope Function)](scope-functions.html.md) - [时间测量](time-measurement.html.md) - [UUID](uuids.html.md) - [协程指南](coroutines-guide.html.md) - [协程的基本概念](coroutines-basics.html.md) - [取消与超时](coroutines-cancellation.html.md) - [异步的数据流(Asynchronous Flow)](coroutines-flow.html.md) - [数据流操作符](coroutines-flow-operators.html.md) - [教程 - 协程(Coroutine)与通道(Channel)](coroutines-and-channels.html.md) - [挂起函数(Suspending Function)的组合](composing-suspending-functions.html.md) - [协程上下文与派发器(Dispatcher)](coroutine-context-and-dispatchers.html.md) - [通道(Channel)](channels.html.md) - [协程的异常处理](exception-handling.html.md) - [共享的可变状态与并发](shared-mutable-state-and-concurrency.html.md) - [选择表达式(Select expression) (实验性功能)](select-expression.html.md) - [调试协程](coroutines-debugging.html.md) - [教程 - 使用 IntelliJ IDEA 调试协程](debug-coroutines-with-idea.html.md) - [教程 - 使用 IntelliJ IDEA 调试 Kotlin 数据流(Flow)](debug-flow-with-idea.html.md) - [序列化](serialization.html.md) - [Kotlin 序列化入门](serialization-get-started.html.md) - [序列化内建类型](serialization-serialize-builtin-types.html.md) - [序列化类](serialization-customization-options.html.md) - [JSON 序列化概述](serialization-configure-json-serialization.html.md) - [自定义 Json 实例](serialization-json-configuration.html.md) - [JSON 元素](serialization-json-elements.html.md) - [变换 JSON 结构](serialization-transform-json.html.md) - [使用 I/O Source 序列化 JSON](serialization-json-io-sources.html.md) - [序列化多态类](serialization-polymorphism.html.md) - [创建和使用序列化器(Serializer)](serialization-create-and-use-serializers.html.md) - [Kotlin Metadata JVM 库](metadata-jvm.html.md) - [概述](lincheck-guide.html.md) - [Lincheck 入门](lincheck-getting-started.html.md) - [测试任意代码](lincheck-testing-arbitrary-code.html.md) - [如何测试数据结构](lincheck-how-to-test-data-structures.html.md) - [压力测试与模型检查](lincheck-testing-strategies.html.md) - [配置测试策略](lincheck-testing-strategies-options.html.md) - [操作参数](lincheck-argument-generation-constraints.html.md) - [数据结构约束](lincheck-operation-execution-options.html.md) - [进度保证](lincheck-progress-guarantees.html.md) - [顺序规格](lincheck-results-validation.html.md) - [API 参考文档](api-references.html.md) - [Gradle](gradle.html.md) - [Gradle 与 Kotlin/JVM 入门](get-started-with-jvm-gradle-project.html.md) - [配置 Gradle 项目](gradle-configure-project.html.md) - [Gradle 最佳实践](gradle-best-practices.html.md) - [Kotlin Gradle plugin 中的编译器选项](gradle-compiler-options.html.md) - [Kotlin Gradle plugin 中的编译与缓存](gradle-compilation-and-caches.html.md) - [Kotlin Gradle plugin 中的二进制兼容性验证](gradle-binary-compatibility-validation.html.md) - [对 Gradle plugin 变体的支持](gradle-plugin-variants.html.md) - [Maven](maven.html.md) - [配置 Maven 项目](maven-configure-project.html.md) - [在 Maven 项目中设置仓库和依赖项](maven-set-dependencies.html.md) - [为你的 Maven 项目配置 Kotlin 编译器](maven-kotlin-compiler.html.md) - [打包你的 Maven 应用程序](maven-compile-package.html.md) - [构建工具 API](build-tools-api.html.md) - [Kotlin Daemon](kotlin-daemon.html.md) - [K2 编译器迁移向导](k2-compiler-migration-guide.html.md) - [Kotlin 命令行编译器](command-line.html.md) - [教程 - 创建控制台应用程序](jvm-get-started.html.md): 在 IntelliJ IDEA 中创建一个 Kotlin 控制台应用程序, 并使用 Kotlin 编译器运行它. - [Kotlin 编译器选项](compiler-reference.html.md) - [编译器执行策略](compiler-execution-strategy.html.md) - [编译器 Plugin](compiler-plugins-overview.html.md) - [All-open 编译器 plugin](all-open-plugin.html.md) - [KAPT 编译器 plugin](kapt.html.md) - [Lombok 编译器 plugin](lombok.html.md) - [No-arg 编译器 plugin](no-arg-plugin.html.md) - [Power-assert 编译器插件](power-assert.html.md) - [SAM-with-receiver 编译器 plugin](sam-with-receiver-plugin.html.md) - [自定义编译器插件](custom-compiler-plugins.html.md) - [Compose 编译器迁移指南](compose-compiler-migration-guide.html.md) - [Compose 编译器选项 DSL](compose-compiler-options.html.md) - [Kotlin 符号处理(Kotlin Symbol Processing) API](ksp-overview.html.md) - [KSP 入门](ksp-quickstart.html.md) - [从 kapt 迁移到 KSP](ksp-kapt-migration.html.md) - [KSP 示例程序](ksp-examples.html.md) - [KSP 如何将 Kotlin 代码组织为模型](ksp-additional-details.html.md) - [针对 Java 注解处理器开发者的参考文档](ksp-reference.html.md) - [增量式处理(Incremental Processing)](ksp-incremental.html.md) - [多轮(Multiple Round)处理](ksp-multi-round.html.md) - [在 Kotlin Multiplatform 中使用 KSP](ksp-multiplatform.html.md) - [在命令行运行 KSP](ksp-command-line.html.md) - [KSP FAQ](ksp-faq.html.md) - [Kotlin 发展路线图](roadmap.html.md) - [Kotlin 语言的功能特性与提案](kotlin-language-features-and-proposals.html.md) - [Kotlin 的演化原则](kotlin-evolution-principles.html.md) - [Kotlin 各部分组件的稳定性](components-stability.html.md) - [Kotlin 各部分组件的稳定性 (1.4 版以前)](components-stability-pre-1-4.html.md) - [Kotlin 的发布流程](releases.html.md): 学习 Kotlin 不同类型的发布版本, 如何更新到各个版本, 以及 Kotlin 的发布历史. - [Kotlin 2.3.20 中的新功能](whatsnew2320.html.md): 阅读 Kotlin 2.3.20 发布说明, 包括新的语言功能特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.3.0 中的新功能](whatsnew23.html.md): 阅读 Kotlin 2.3.0 发布说明, 包括新的语言功能特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.3.x 兼容性指南](compatibility-guide-23.html.md) - [Kotlin 2.2.20 中的新功能](whatsnew2220.html.md): 阅读 Kotlin 2.2.20 发布说明, 包括新的语言功能特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.2.0 中的新功能](whatsnew22.html.md): 阅读 Kotlin 2.2.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.2.x 兼容性指南](compatibility-guide-22.html.md) - [Kotlin 2.1.20 中的新功能](whatsnew2120.html.md): 阅读 Kotlin 2.1.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.1.0 中的新功能](whatsnew21.html.md): 阅读 Kotlin 2.1.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.1.x 兼容性指南](compatibility-guide-21.html.md) - [Kotlin 2.0.20 中的新功能](whatsnew2020.html.md): 阅读 Kotlin 2.0.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.0.0 中的新功能](whatsnew20.html.md): 阅读 Kotlin 2.0.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 2.0.x 兼容性指南](compatibility-guide-20.html.md) - [Kotlin 1.9.20 版中的新功能](whatsnew1920.html.md): 阅读 Kotlin 1.9.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.9.0 版中的新功能](whatsnew19.html.md): 阅读 Kotlin 1.9.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.9.x 兼容性指南](compatibility-guide-19.html.md) - [Kotlin 1.8.20 版中的新功能](whatsnew1820.html.md): 阅读 Kotlin 1.8.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS, 和 Wasm 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.8.0 版中的新功能](whatsnew18.html.md): 阅读 Kotlin 1.8.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.8.x 兼容性指南](compatibility-guide-18.html.md) - [Kotlin 1.7.20 版中的新功能](whatsnew1720.html.md): 阅读 Kotlin 1.7.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.7.0 版中的新功能](whatsnew17.html.md): 阅读 Kotlin 1.7.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.7.20 兼容性指南](compatibility-guide-1720.html.md) - [Kotlin 1.7.0 兼容性指南](compatibility-guide-17.html.md) - [Kotlin 1.6.20 版中的新功能](whatsnew1620.html.md): 阅读 Kotlin 1.6.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.6.0 版中的新功能](whatsnew16.html.md): 阅读 Kotlin 1.6.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.6.x 兼容性指南](compatibility-guide-16.html.md) - [Kotlin 1.5.30 版中的新功能](whatsnew1530.html.md): 阅读 Kotlin 1.5.30 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.5.20 版中的新功能](whatsnew1520.html.md): 阅读 Kotlin 1.5.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.5.0 版中的新功能](whatsnew15.html.md): 阅读 Kotlin 1.5.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.5.x 兼容性指南](compatibility-guide-15.html.md) - [Kotlin 1.4.30 版中的新功能](whatsnew1430.html.md): 阅读 Kotlin 1.4.30 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.4.20 版中的新功能](whatsnew1420.html.md): 阅读 Kotlin 1.4.20 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.4.0 版中的新功能](whatsnew14.html.md): 阅读 Kotlin 1.4.0 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.4.x 兼容性指南](compatibility-guide-14.html.md) - [Kotlin 1.3 版中的新功能](whatsnew13.html.md): 阅读 Kotlin 1.3 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.3.x 兼容性指南](compatibility-guide-13.html.md) - [Kotlin 1.2 版中的新功能](whatsnew12.html.md): 阅读 Kotlin 1.2 发布说明, 包括新的语言特性, Kotlin Multiplatform, JVM, Native, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [Kotlin 1.1 版中的新功能](whatsnew11.html.md): 阅读 Kotlin 1.1 发布说明, 包括新的语言特性, Kotlin/JVM, JS 的更新, 以及对 Gradle 和 Maven 的构建工具支持. - [参加 Kotlin EAP 项目](eap.html.md) - [针对 EAP 进行构建配置](configure-build-for-eap.html.md) - [学习资料概述](learning-materials-overview.html.md) - [Kotlin 动手课程(hands-on)](kotlin-hands-on.html.md) - [Kotlin 小技巧](kotlin-tips.html.md) - [Kotlin Koan](koans.html.md) - [Kotlin 书籍](books.html.md) - [使用 Kotlin 惯用法的 Advent of Code](advent-of-code.html.md) - [使用 JetBrains Academy plugin 学习 Kotlin](edu-tools-learner.html.md) - [使用 JetBrains Academy plugin 教授 Kotlin](edu-tools-educator.html.md) - [FAQ](faq.html.md): Kotlin 是 JetBrains 公司开发的一种简洁的跨平台编程语言. - [使用 Kotlin 参加 Google 编程夏令营](gsoc-overview.html.md) - [使用 Kotlin 参加 Google 编程夏令营 2026](gsoc-2026.html.md) - [使用 Kotlin 参加 Google 编程夏令营 2025](gsoc-2025.html.md) - [使用 Kotlin 参加 Google 编程夏令营 2024](gsoc-2024.html.md) - [使用 Kotlin 参加 Google 编程夏令营 2023](gsoc-2023.html.md) - [在编程竞赛(Competitive Programming)中使用 Kotlin](competitive-programming.html.md) - [为 Kotlin 项目贡献代码](contribute.html.md) - [KUG 指南](kug-guidelines.html.md) - [Kotlin Night 指南](kotlin-night-guidelines.html.md) - [Kotlin Slack 行为准则和指南](slack-code-of-conduct.html.md) - [Kotlin 品牌资产](kotlin-brand-assets.html.md) - [Kotlin 文档 (PDF 格式)](kotlin-pdf.html.md) - [安全性](security.html.md)