How to Install Android Studio on Ubuntu
The Android operating system runs on over 2.5 billion devices worldwide. The need for Android software engineers to develop new applications and maintain existing ones is huge.
Here’s how to start Android app development by installing Android Studio on Ubuntu, which includes the Android SDK, Java Development Kit (JDK), and other software needed to start developing native Android apps. Let’s start!
What is Android Studio?
Android Studio is an integrated development environment (IDE) for developing native Android applications. It is based on IntelliJ and is developed in collaboration with JetBrains, specifically for Android developers.
Android Studio is completely free and available on Windows, Linux, Chrome OS and macOS. It is also natively supported on the ARM-based Apple M1 silicon chip.
Apart from being an IDE, Android Studio also comes with all the software components needed to develop Android apps on a Linux PC.
Android Studio supports Android application development in Java and Kotlin programming languages.
Step 1: Get Android Studio on Ubuntu/Linux
You can download Android Studio from the official Android developer page.
By clicking on the To download will save the installer to your default downloads directory, which is probably the Downloads case.
To download: Android Studio (Free)
Step 2: Pre-installation configuration
Assuming you downloaded Android Studio to the Downloads directory, navigate to that folder with the cd command.
Next, extract the TAR file from Android Studio using the tar command as follows:
tar -xzvf android-studio-*.tar.gz
Go to the extracted folder and move the android-studio directory to /opt phone book.
sudo mv android-studio /opt/
You will need sudo or elevated privileges to run this command.
Placement android-studio in the /opt directory makes it available to all users of your Linux system.
Installation of required dependencies
You must install the following Android Studio software dependencies if you are running a 64-bit version of Linux.
For Debian-based Linux distributions, such as Ubuntu, Pop!_OS, etc., install the following:
sudo apt-get install libc6 libncurses5 libstdc++6 lib32z1 libbz2-1.0
For Fedora and other RHEL-based Linux distributions, you can run the following:
sudo yum install zlib ncurses-libs bzip2-libs
Step 3: Launch Android Studio Installer
Head to /opt/android-studio/bin case:
Start the studio.sh script using the following command:
The system will then present you with a setup wizard to guide you through the installation. Click on the OK to use the default selection, i.e. you don’t import any settings.
Next is the usage statistics page. Choose whether or not to send usage statistics to Google. To do this, simply use the default selection. Click on the Following button on the next page.
The installation wizard will guide you through all the installation steps. Some of the things you will configure during installation are:
- UI theme: Most developers use dark themes to avoid eye strain caused by spending long hours in front of computer screens
- Android Studio License Terms for Android SDK
Finally, click on the To finish button to finalize your Android Studio installation.
Step 4: Add Android Studio to the app list
You should add Android Studio to your list of Linux apps to easily access the IDE in the future. Adding Android Studio to your app list also lets you easily pin its shortcut to your bookmarks bar or taskbar.
In the Android Studio IDE, click the Tools menu button and select Create an office entrance.
You can now search for Android Studio in the apps menu and launch it from there.
Developing Native Android Applications on Ubuntu
Setting up your Linux PC for native Android app development with Android Studio is a critical step on your journey to developing your first Android app.
Apart from smartphones and tablets, Android also works on wearable devices, cars, etc. This makes learning Android app development a worthwhile investment.
Learn how to develop Android and iOS apps with this comprehensive bundle
About the Author