Android SDK 命令行工具版本说明
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android SDK 命令行工具软件包包含可用于构建和调试 Android 应用的各种工具。此软件包与 Android Studio 同步发布,并将安装在 android_sdk/cmdline-tools/version/bin/
目录中。
有关此软件包中包含的工具的完整说明,请参阅用户指南中的命令行工具。
如需安装最新版本,请在 SDK 管理器中查看是否有更新。或者,您也可以直接下载最新稳定版。
在 Android Studio 中,SDK 管理器对话框中提供的最新版本取决于您选择的更新渠道。如需使用此软件包的预览版,请将更新渠道设置为 Beta 版或 Canary 版。
如需从命令行使用 sdkmanager
进行更新,请使用以下任一方法:
// Beta channel
sdkmanager 'cmdline-tools;latest' --channel=1
// Canary channel
sdkmanager 'cmdline-tools;latest' --channel=3
更新时间:2020 年 12 月。
更新时间:2020 年 12 月。添加了 retrace
工具。
发布时间:2020 年 7 月。
发布时间:2020 年 6 月。
发布时间:2020 年 5 月。
发布时间:2020 年 2 月。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Android SDK Command-Line Tools release notes\n\nThe Android SDK Command-Line Tools package\ncontains various tools for building and debugging Android apps. It is\nreleased concurrently with Android Studio and is installed in the\n\u003cvar translate=\"no\"\u003eandroid_sdk\u003c/var\u003e`/cmdline-tools/`\u003cvar translate=\"no\"\u003eversion\u003c/var\u003e`/bin/`\ndirectory.\n\nFor a complete description of the tools included in this package, see\n[Command line tools](/studio/command-line#tools-sdk)\nin the user guide.\n\nTo install the latest version, check the\n[SDK Manager](/studio/intro/update#sdk-manager) for updates.\nAlternatively, you can [download the latest stable version](/studio#command-tools)\ndirectly.\n\nIn Android Studio, the latest\nversion available in the SDK Manager dialog depends on which update channel\nyou've selected. To use a preview version of this package,\n[set your update channel](/studio/preview/install-preview#change_your_update_channel)\nto either Beta or Canary.\n\nTo update using `sdkmanager` from the command line, use either of the following: \n\n // Beta channel\n sdkmanager 'cmdline-tools;latest' --channel=1\n\n // Canary channel\n sdkmanager 'cmdline-tools;latest' --channel=3\n\n| **Note:** The Android SDK Command-Line Tools package replaces the deprecated [SDK Tools](/studio/releases/sdk-tools) package. For information about the deprecated SDK Tools package, see the [Android SDK Tools release notes](/studio/releases/sdk-tools).\n\nAndroid SDK Command-Line Tools 5.0 (canary)\n-------------------------------------------\n\nUpdated in December 2020.\n\nAndroid SDK Command-Line Tools 4.0 (beta)\n-----------------------------------------\n\nUpdated in December 2020. Adds the [`retrace`](/studio/command-line/retrace)\ntool.\n\nAndroid SDK Command-Line Tools 3.0\n----------------------------------\n\nReleased in July 2020.\n\nAndroid SDK Command-Line Tools 2.1\n----------------------------------\n\nReleased in June 2020.\n\nAndroid SDK Command-Line Tools 2.0\n----------------------------------\n\nReleased in May 2020.\n\nAndroid SDK Command-Line Tools 1.0\n----------------------------------\n\nReleased in February 2020."]]