

If you've downloaded or unzipped the SDK-tools package into other directory, please don't forget to use appropriate paths. To do so, you can run the command below: export PATH=/home/ubuntu/tools:/home/ubuntu/tools/bin:$PATH To complete the installation we need to add the following paths to our PATH environment variable. Once it's installed unzip with the following command unzip sdk-tools-linux-3859397.zipĪ new directory will be created named tools. To download binaries from terminal run the command below: wget If you open the link above in the browser you can find available zip files under the "Command Line Tools only" part. We need to download the binaries from Android Developers Website. OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)Īfter successful JAVA installation, we can proceed to the installation of Android SDK.

OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)

The output must look like this openjdk version "10.0.1" Once JAVA is installed on the machine we can run the following command to check the java version and to be sure it has been installed correctly: java -version To do so you can run the following commands in the order mentioned below: sudo apt update sudo apt install default-jdk Install Android SDK Tools Packageīefore installing the preferred tool, we need to update all packages and install JAVA, as the Android SDK requires it to run. The sdkmanager tool is provided in the Android SDK Tools package, so we are going to install the latter to be able to use sdkmanager. If you're already using Android Studio, you don't need to use sdkmanager as you can manage your SDK packages from the IDE instead. Earlier we have seen how to Install Android SDK Manager on Ubuntu 16.04. This tutorial is going to teach you how to install Android SDK Manager on Ubuntu 18.04 using terminal. The sdkmanager is a CLI tool that allows users to view, install, update, and uninstall available packages for the Android SDK.
