如何从无头的服务器上进行命令行安装Android SDK中?命令行、无头、器上、SDK

2023-09-05 05:47:12 作者:备胎而已@

到目前为止,香港专业教育学院成功地下载和安装SDK和它在我的道路。现在的问题是,我不能运行的Android SDK的更新,因为它预计要连接到显示器和Im通过ssh连接到远程服务器的无头(其构建服务器,所以没有桌面ENV)。有没有为Android的工具,告诉它没有X上运行一个命令行选项?

So far Ive managed to download and install the SDK and its in my PATH. Problem now is that I can't run "android update sdk" since it expects to be connected to a display and Im connected to a remote headless server through ssh (its a build server so there's no desktop env). Is there a command-line option for the android tool that tells it to run without X ?

推荐答案

有一个 - 没有UI 标志进行更新。

There is a --no-ui flag for the update.

典型的Linux安装程序:

Typical linux setup:

cd android-sdk-linux_86/tools
./android update sdk -u

这将运行无头。要注意, -u - 没有UI 是相同的标志

This will run it headless. To note, -u and --no-ui are the same flag