If you are dreaming about becoming an Android developer, one of the best apps that you can use for developing software is Android Studio. Google, who designed this operating system, made Android Studio to make developers’ life easier.
Did you know that Google designed its Android development software for Ubuntu? They are big fans of Linux in Google and were using Ubuntu until they moved to Debian. Either way, the point is that Android Studio will run flawlessly on Linux-based operating systems. Let’s take a look at how you can install the program.
What You Need to Install Android Studio on Ubuntu
You will need to install Java on your machine to be able to run Android Studio. You can do so with the simple command you will enter in the Linux terminal:
sudo apt install openjdk-8-jre openjdk-8-jdk
Considering that you will be installing from the official repository, the process should be done quickly.
The Best Way to Install Android Studio on Ubuntu
Snaps will enable you to set up Android Studio on Ubuntu effortlessly. Although optimized for Linux, Android studio is third-party software. Snaps allow you to install this software to Linux-based OS and eliminate the necessity of packaging and repackaging them.
Here is the only command line you need to enter to install Android Studio on Ubuntu from a snap:
snap install android-studio
You will, however, need to have sudo permission to perform the installation.
How to Install Android Studio on Ubuntu by Using Umake
To perform this installation, you will need to set up Ubuntu Make first. Run the following command:
apt-get install ubuntu-make
Now that you have installed the Tools Center for Developers, you can use the following line to set up Android Studio:
The installation process that follows only takes a couple of clicks and should be finished in a minute or two.
If you tried Android Studio and you didn’t like it for some reason, use the following command to uninstall it:
umake android –remove
How to Install Android Studio on Linux by Using PPA
PPA or Personal Package Archive is also an option to install Android Studio on Ubuntu, and other Linux distributions based on that OS, such as Linux Mint.
Keep in mind that this method will require your machine to download approximately 650MB from the internet, so make sure you have enough hard drive space and a valid internet connection.
The first command you should run is:
Paolo Rotolo is the name of the guy who made this method possible, so kudos to him. The next command is an update of your system:
Finally, the command that will set up the program:
apt-get install android-studio
Keep in mind that all the commands mentioned in this paragraph require superuser permission.
If you want to remove Android Studio from your machine, use the following command:
apt-get install ppa-purge
In case you have installed PPA Purge, proceed with the following lines:
apt-get remove android-studio ppa-purge ppa:paolorotolo/android-studio
You will also need sudo permission to uninstall Android Studio.
As you can see, there are multiple ways you can use to set up Android Studio on Ubuntu. Using Snaps is undoubtedly the easiest, but you can also try the other available methods. We hope that you will have plenty of success in developing apps in the software!
Our official Twitter page is now up, follow us in order to stay up to date with our latest Linux articles.Follow