管理安卓 SDK 软件包

自 Android SDK Tools 25.3.0 版起,Android 只有一个命令行工具sdkmanager 用于 SDK 软件包管理。为了简化 SDK 管理,Qt Creator 提供了 SDK 管理器,用于安装、更新和删除 SDK 软件包。您仍然可以使用sdkmanager 进行高级 SDK 管理。

要查看已安装的 Android SDK 软件包,请选择首选项>SDKs >Android >SDK Manager

SDK 偏好设置中 Android 标签下的 SDK 管理器

显示 SDK 软件包

要在Package 中显示某个发布渠道的软件包,请在Show Packages >Channel 中选择该渠道。常见的通道 ID 包括Stable,Beta,DevCanary

要同时显示和更新过时的软件包,请选择Include obsolete

要过滤软件包,请选择Available,InstalledAll

更新 SDK 软件包

更新已安装的 Android SDK 软件包:

  1. 选择Update Installed
  2. 选择要更新的软件包。
  3. 选择Apply

设置 sdkmanager 选项

设置高级sdkmanager 选项:

  1. 选择Advanced Options
  2. SDK Manager arguments 中,输入Available arguments 中的 sdkmanager 选项。

    Android SDK 管理器参数对话框

另请参阅 《如何:为 Android 开发》和《为 Android 开发》

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.