Install Android Studio through Ubuntu Make

android-studio_logo

If there is something clear in the mobile telephony sector, it is that people are finding it easier every time to get hold of a Smartphone. Today there is a great variety -both economic and technical- of mobiles and that is why a large part of society already has one in its possession.

Precisely for this reason, the development of applications for Android is becoming more attractive and interesting. So from Ubunlog we want to explain how download and install Android Studio, the IDE par excellence of development for Androidd, step by step and with the help of the Ubuntu Make tool.

Installing Ubuntu Make

As we have said, we will install Android Studio through Free Make, a very useful tool for download all kinds of development programs. To install Ubuntu Make, we have to add the corresponding repositories, update them and install the program package, as you can see below:

sudo add-apt-repository ppa: ubuntu-desktop / ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

Once we have installed Ubuntu Make (from now on sauces in the terminal), we can see which are the supported platforms by executing the command umake --help.

Installing Java

Before installing Android Studio, we have to make sure that Java is installed on our PC. If you don't know if you have it installed or not, you can run the command java -version from the terminal, and, if you get a specific version, you have it installed.

If you don't have Java installed, you can do it by running the following commands:

sudo apt-get install default-jre

SUOUT APT-GET INSTALL DEFAULT-JDK

These commands will install the Java Runtime Environment (JRE) and the Java Development Kit (JDK) that you will need it to be able to compile Java from Android Studio. Also, OpenJDK should be installed by default. Once you have Java installed, you can proceed to install Android Studio.

Installing Android Studio

Now we can proceed to install Android Studio using Ubuntu Make. To do this, we have to execute the command u make android from the terminal, and the installation process will begin.

Installing SDK Tools

For Android Studio to work properly, you need to download the SDK Tools, a tool that will provide you with different packages that you will need, such as the APIs corresponding to each version of Android. You can download SDK Tools from here. Once you have downloaded the program, unzip the .zip file that you have downloaded and memorize well where you have unzipped it, because later on you will need to access that directory.

Two packages that you may need

If your PC is 64-bit, you will need download two packages so that Android Studio can run smoothly. These packages are C ++ libraries that Android Studio uses and that on 64-bit PCs are not installed by default, as they are libstdc ++ 6-4.6-dev y zlib1g-dev. To install them, you can easily do it by using the command:

sudo apt-get install package_name

Setting up Android Studio

The first step is to tell Android Studio where you have the SDK Tools folder. This you can do from File -> Project Structure, and from there select the folder that you unzipped when you downloaded the SDK Tools.

sdk

When you already have the SDK running in Android Studio, you can access it from the IDE itself, from the tab Toolsby clicking on Android and later SDKManager.

Well, now is the time to install APIs, different services offered by Google, and other packages that will be very useful when developing your applications for Android. In the Android Studio SDK Manager, you will see that there are three tabs; SDK Platforms, SDKTools y SDK Update Sites.

En SDK Platforms, you have to download the API of the version for which you want to develop. I have API 16 (Android 4.0.3) installed, since the version of the vast majority of mobiles today is 4.0.3 or higher. Still, feel free to install the API you want, as long as you are aware that mobiles with versions that fall below the API you have installed, they will not be able to run the application you develop.

En SDKTools you have to install the following packages:

  • Android SDK Build Tools
  • Android SDK Tools
  • Android SDK Platform-Tools
  • Documentation for Android SDK
  • GPU Debugging Tools,
  • Android Support Repository
  • Android Support Library
  • Android Auto API

Remember that to install both the API's you want, and the packages listed above, you first have to mark them to install and then click Apply y Ok, for the installation process to begin.

In addition, all packages of SDK Update Sites They should already be installed by default. If not, just mark them to install as well.

The package installation process can take a long time, so don't be in a rush. If the installation process is interrupted for whatever reason, we recommend that you do not try to retake it. Otherwise, internal IDE problems could be generated that always tend to give a lot of headache if you want to fix them. So the best thing you can do is delete the SDK Tools folder, re-download the program, tell Android Studio where you have unzipped the new SDK, and proceed again with the installation of the SDK packages.

Once the installation process has finished, restart Android Studio and you should be ready to start developing your own apps without problems.

We hope you liked this post and helped you install Android Studio easily. If you have any problems or doubts, leave them in the comments section.