How to setup Android sdk from command-line on headless server?

Eno picture Eno · Apr 21, 2010 · Viewed 28.3k times · Source

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 ?

Answer

user284244 picture user284244 · Sep 13, 2010

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

Typical linux setup:

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

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