How to install Android SDK on Linux using CLI only?
I'm setting up an auto build serve开发者_运维技巧r, 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?
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)
tools/android update sdk --no-ui
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)
精彩评论