如何更新一个无头的Linux的Android平台的工具? [英] How to update Android platform-tools in a headless linux?
问题描述
我们有没有安装的X-Window一些CI的主机,我知道如何更新SDK与Android更新命令,但我如何更新平台的工具,这个命令?
We have some CI hosts without X-Window installed, i know how to update SDK with android update command, but how can i update platform-tools with this command?
推荐答案
您可以使用下面的命令:
You can use the following commands:
$ android list sdk
$ android update sdk --no-ui --filter 1,platform-tools
第一条命令列出了可用的包仍有待安装(以数字为索引),例如:
The first command lists the available packages that are still to be installed (indexed by number), as for example:
Packages available for installation or update: 9
1- Android SDK Tools, revision 19
2- Android SDK Platform-tools, revision 11
...
根据这一列表,你可以发出第二个命令来安装你想要安装的软件包。
According to that list you can issue the second command to install the packages that you want to install.
在 - 滤镜
选项限制的更新要安装的软件包。您可以在一个逗号分隔的形式指定这些软件包。此外,您还可以在列表中第一个命令导致所提供的索引号过滤。
The --filter
option limits the update to the packages that you want to install. You specify those packages in a comma-separated format. Also, you can filter them by the index number provided in the listing resulting from the first command.
这篇关于如何更新一个无头的Linux的Android平台的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!