如何从无头的服务器上进行命令行安装Android SDK中? [英] How to setup Android sdk from command-line on headless server?

查看:153
本文介绍了如何从无头的服务器上进行命令行安装Android SDK中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,香港专业教育学院成功地下载和安装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

这篇关于如何从无头的服务器上进行命令行安装Android SDK中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆