I'm setting up an auto build server, and need to install an Android SDK. I'm working over SSH, of course. But tools/android update sdk
wants to start a Java GUI. Any other way to install an SDK?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
If you use tools/android -h update sdk
(I discovered that by trying tools/android update sdk --help
), you will get a list of options for the update sdk
command, the most interesting one being:
-u --no-ui Updates from command-line (does not display the GUI)
回答2:
tools/android update sdk --no-ui
回答3:
If workwing behind a proxy consider using options:
--proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)
--proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)