16 C
Texas

Set Up Android Dev Tools on Linux

Linux is, by far, one of the most favorite platforms for developers as it provides a number of tools and a highly favorable environment. For Android app devs, the statement also goes true. If you’re new to Android development or willing to have your Android dev environment on your Linux system, let’s jump right into here!

Today, we’ll be installing Android dev tools into our Linux system.

Prerequisites

Before installing the Android Studio, we have to make sure that JDK is installed in the system. Run the following command according to your Linux distro.

  • Ubuntu
sudo apt install openjdk-11-jdk
- Advertisement -

  • Debian
sudo apt-get install openjdk-8-jdk
  • Fedora
sudo dnf install java-openjdk -y
  • OpenSUSE

For getting OpenJDK, go to this link.

  • Arch Linux
sudo pacman -S jdk10-openjdk
  • Generic instruction

If your system was not in the list above, you have to manually install OpenJDK in your system. At first, download the latest OpenJDK TAR.GZ archive for Linux. Then, follow the instructions stated here.

Installing Android Studio

Download the latest Android Studio. It’s a large file and depending on your internet connection, the time may be long. Be patient, please!

After download is complete, fire up the terminal and start running the following commands –

cd ~/Downloads
unzip android-studio-ide-173.4907809-linux.zip

Now, the final installation process begins. Start Studio –

cd ~/Downloads/android-studio/bin
./studio.sh

At the first step, select “Do no import settings”.

Android Studio welcome page will open. Click “Next”.

You’ll have the option of choosing the installation type of Android Studio. I recommend going with “Standard” option. If you’re an expert, you can go ahead with the “Custom” option. In that case, you have to make sure that every component you’re picking is correct.

It’s time to choose the Studio theme. I prefer the “Dracula” theme, but choose whatever you like.

Now, verify all the settings you’ve chosen.

Studio will start downloading all the required components. Wait before it completes. The required packages are quite huge, to be honest.

After everything is complete, you’ll have the option to start the Studio. As it’s the first time, go ahead with the first option of creating a new Android Studio project.

Enjoy!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article