Android Studio is Google's officially supported Development Environment (IDE) for building Android apps. Based on IntelliJIDEA's powerful code editor and developer tools, it allows to develop apps for Android-based phones, tablets, TV, etc.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Software Packages Installation tasks.
In this context, we shall look into how to install Android Studio on Ubuntu OS.
How to Install Android Studio on Ubuntu ?
Before proceeding with this Installation procedure, ensure that your are using A user with root or sudo access.
We can Install Android Studio via the following methods:
- Installing Android Studio via tarball.
- Installing Android Studio via repository.
- Installing Android Studio via snap.
1. Install Android Studio via tarball
To Install Android Studio via tarball, Follow these steps for the installation procedure below:
1. Download the Android studio tar.gz package using the command below in the Terminal:
$ wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/188.8.131.52/android-studio-ide-201.7042882-linux.tar.gz
2. Once the package is downloaded, extract it using the command below:
$ tar -xf android-studio-ide-201.7042882-linux.tar.gz
3. Then navigate to the extracted folder and run the install script as follows:
$ cd android-studio/bin
After running the script, the Import Android Studio Settings window will pop up.
4. Choose the Do not import settings radio button in the above window and click OK. After that, the Welcome wizard will show up. Click Next.
5. When the welcome window appears, choose Standard as Android Studio setup and click Next.
6. Then based on your preferences, select Darcula or Light UI theme and click Next.
7. Then you will be presented with a window to review the settings. If you want to make any changes in the settings, click Previous, otherwise click Next.
8. Then click Finish.
9. Now, the downloading of components will be started on your system. Based upon the internet speed, it may take little time.
Once the download is completed, the "Welcome to Android Studio" window will show up on the screen.
2. Install Android Studio via repository
Android Studio can also be installed via its repository. Follow these steps for the installation procedure:
1. To install Android Studio, you will first need to add its repository. Use the below command to do so:
$ sudo add-apt-repository ppa:maarten-fonville/android-studio
Enter sudo password. Then press Enter to continue the procedure.
2. After adding the repository, update the repository index using this command:
$ sudo apt update
3. Then to install Android Studio, use this command:
$ sudo apt install android-studio
If asked for continuation, hit y to continue.
Once the installation is completed, hit the super key and type android studio in the search area. When the icon for the Android Studio application appears, click it to launch.
To complete the remaining procedure, follow the step 4 to step 8 described in the first method.
3. Install Android Studio via snap
Another way to install Android Studio is using the snap application. Follow these steps for the installation procedure via snap:
1. First, check if snapd is installed on your machine. Use the command below to do this:
$ snap version
If it is missing from your machine, use the command below to install it:
$ sudo apt install snapd
Provide the sudo password.
2. To install Android Studio snap package, use the command below:
$ sudo snap install android-studio --classic
Once the installation is completed, hit the super key and type android studio in the search area. When the icon for the Android Studio application appears, click it to launch it.
After opening the Android Studio application, the below window will appear. To complete the remaining procedure, follow the step 4 to step 8 described in the first method.
How to Uninstall Android Studio from Ubuntu ?
If you no longer require Android Studio on your machine, you can remove it easily using the following methods.
If you have installed Android Studio via tarball, then use the commands below to remove it:
$ sudo rm -r Android*
$ sudo rm -r .android/
$ sudo rm -r android-studio/
$ sudo rm /usr/share/applications/android-studio.desktop
If you have installed Android Studio via repository, then use the command below to remove it:
$ sudo apt remove android-studio
If you have installed Android Studio via its snap package, then use the command below to remove it:
$ sudo snap remove android-studio --classic
[Need assistance in installing any Software Package on Linux System? We can help you. ]