Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Android SDK on Linux using CLI only?

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?

like image 774
Alexey Timanovsky Avatar asked Dec 31 '10 11:12

Alexey Timanovsky


People also ask

How do I download Android SDK only?

You will need to download the Android SDK without Android Studio bundled. Go to Android SDK and navigate to the SDK Tools Only section. Copy the URL for the download that's appropriate for your build machine OS. Unzip and place the contents within your home directory.

Can I install Android Studio using terminal?

If you're using a 64-bit version of Linux, make sure you first install the required libraries for 64-bit machines. To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh . Select whether you want to import previous Android Studio settings or not, then click OK.


1 Answers

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)
like image 173
Jean Hominal Avatar answered Oct 15 '22 21:10

Jean Hominal