Last Updated:

How to install android studio on linux

To work with Android, it is recommended to constantly search for and install the necessary software to maintain a full set of functionality for working with certain devices. As a basic operation, it is recommended to know how to install AndroidStudio on Linux.

Firstly, such software is common and affordable, and secondly, Linux is focused on performing various operations in the command line in conjunction with other software. Just after reading this article, the user will understand what it is like to install AndroidStudio in Ubuntu (the most popular distribution).

It is recommended to know what this software is for. If the user does not understand what AndroidStudio is, it is recommended to explain what operations this program allows you to perform.

Since the operating system from Google allows you to edit the files of installations and applications, such actions are carried out here. Therefore, if there is no experience in working with this program, it is recommended to read the material "Writing and assembling applications for Android in Linux-consoles". There will be explained the entire algorithm of actions, allowing you to easily create your own versions of programs for the mobile OS.

Install AndroidStudio for Linux

 

After the user has figured out the purpose of this program, you need to proceed to the installation process of the utility for working with Android. To do this, you need to perform one single action so that everything is ready for subsequent operations in the console and not only. That is, you need an installer. It can be downloaded from any site - the main thing is that it is compatible with the version of the OS, otherwise failures and any other problems are possible both during installation and during operation.

So, how to install AndroidStudio on Linux: 2 comments. The first is that many installation options are possible. Second, version compatibility must be considered. If you listen to these comments, then everything will go according to plan and no mistakes will arise.

The most common method of installation is from the official website of the developer's company. But for the environment to work, you need to use Java, preferably the 8th version from Oracle. If such a component is already present in the system, you can continue. In any case, it is available on the official website for free.

When the required file with the installation of AndroidStudio is present in the system, you only need to go to the folder with it and unzip the contents. This can be done using the console, and you need to define a special folder for the full operation of the software. In this case, it's "/opt". So, the command should look like this:

$ sudo unzip android-studio-ide-"version number"-linux.zip -d /opt
unzip android-studio

This is how the file downloaded from the official website will look like. The software is constantly updated, and therefore the version may change over time. However, this does not affect the unpacking process. If you want to manually unzip - a standard utility or any archiver downloaded from the network will do everything that is necessary.

Next, it will be possible to run the program using a script file called "studio.sh". It is located in the path: /opt/android-studio/bin/studio.sh. Just like in the case of unzipping, it can be launched both manually and using a command in the console. If everything is clear with the first option, then the latter fits into the command line as well as the path to the file looks. However, it is necessary to finish typing the dollar symbol at the beginning:

$ /opt/android-studio/bin/studio.sh
opt-android-studio

Next, the program itself will start. However, you need to download all the necessary components for work, as well as set up the configuration - import the finished one or create a new one. Having made the last point, an already "beautiful" window with a program called "AndroidStudioSetupWizard" will start. This is where the process itself will begin, when the program files are installed and allow you to fully use the functionality for working with Android.

By clicking on the "Next" button, the type of installation will be offered. Beginners are advised to choose "Standard" so that all the necessary components are loaded without any add-ons. In the case when a person has already worked with AndroidStudio and understands what he needs and what he does not need, then it is permissible to click on "Custom". In this case, the packages are installed depending on the user's choice.

After another click on "Next", the person will be displayed with information about the installation of components. There, as a rule, there is:

  • SDK tools;
  • Android emulator;
  • Data from the system repository and Google services.

In total, this can take up about a gigabyte of data or more (depending on the version of the software. It remains only to go to the download stage, and then wait for the end of the operation. All the data from the server will be assembled and installed, so much depends not only on the connection speed, but also on the load of the site.

When the installation of AndroidStudio on Ubuntu is finished, users will be able to click on the coveted "Finish" button. After that, the desired software package will be available for work.

Install Android Studio from a PPA

This method differs slightly from what was described above. In order to prepare for the installation of the program itself, you need to get the necessary file from the network. And this is done through the console with a few lines of code:

$ sudo add-apt-repository ppa:paolorotolo/android-studio
$ sudo apt-get update
$ sudo apt-get install android-studio

By writing these commands, the user will have all the necessary files to begin with. It remains only to launch the "studio.sh", after which the whole process will go. And for this you need to know how to install AndroidStudio from the official site.

android-studio-sh

Conclusion

 

After reading this article, you can learn about the process of installing a software package for developing applications for Android. Also, later it will be possible to install additional components to expand the functionality. But to do it or not - the user already decides, because the main task is to get the opportunity to work with programs for Android, which after this article becomes easy for most people to understand.