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?
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With