Install Android Studio on Ubuntu 18.04 LTS

Android Studio is the official integrated development environment for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development. It is available for download on Windows, macOS and Linux based operating systems.

Step 1: Navigate to this url and click on Download

Step 2: Move Android studio to user directory using below command

$ mv android-studio-ide-181.5056338-linux.zip ~

Step 3: Extract file using below command

$ unzip android-studio-ide-181.5056338-linux.zip 

Step 4: Navigate to bin directory using below command

$ cd android-studio/bin

Step 5: Run studio.sh using below command

$ sudo ./studio.sh

Note: Change path of installation to /opt/Android/Sdk, by default it point to /root/Android/Sdk. This can put you in trouble later.

Step 6: Select if you want to import any setting

Step 7: Click Next on Welcome Screen

Step 8: Select "Standard" on Install Type Screen

Step 9: Select Theme of your choice

Step 10: Verify Settings

Step 11: Click Finish on "Emulator Settings" screen
[Download will start, which will take some]

Step 12: Click Finish once Download is complete.

Step 13: Click on Configure->SDK Manager

Step 14: Select anything else you want to other than default selection

Step 15: Click OK and close android studio popup

Step 16: Open bashrc file using below command

$ sudo gedit ~/.bashrc

Step 17: Add Android SDK, Platform tools and Java Path

export ANDROID_HOME=/opt/Android/Sdk
export PATH="${ANDROID_HOME}/tools:${PATH}"
export PATH="${ANDROID_HOME}/platform-tools:${PATH}"
export JAVA_HOME=/opt/jdk-11.0.1

Step 18: Verify Installation by typing "adb" in terminal

Wed, 03/03/2021 - 17:17

Authored by

Tarun Goswami, works as a Technical Lead at the well-known IT services company. With Over 11+ years of experience in Quality Assurance, he writes engaging and informative blogs in his spare time.
Tags