How to install Android SDK on Linux using CLI only

2019-03-23 20:46发布

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?

3条回答
趁早两清
2楼-- · 2019-03-23 21:26

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)
查看更多
一纸荒年 Trace。
3楼-- · 2019-03-23 21:34

tools/android update sdk --no-ui

查看更多
干净又极端
4楼-- · 2019-03-23 21:37

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)
查看更多
登录 后发表回答