Skip to main content

How to Install Android Studio on Ubuntu????

Android Studio is a full-featured cross-platfrom IDE which helps us to build applications for Android device. Android Studio is based o JetBrains' IntelliJ IDEA. This IDE includes everything we need for Android development. Android Studio build system is powered by Gradle allowing you to make multiple build variants for various the way to install Android Studio on Ubuntu 21.01. We can use the same instructions for Ubuntu 16.04 and any Ubuntu-base distribution, including Kubuntu, Linux Mint, and Elementary OS.


Prerequisites: We need to be logged in as a user with sudo access. It will make our system able to install packages on our Ubuntu System.


System Requirements for Installing Android Studio in Ubuntu


These are some important specifications our machine needs to meet:

  • 64-bit distribution capable of running 32-bit applications
  • Minimum of 3 GB RAM, 8 GB RAM recommended, Plus 1 GB for the Android Emulator.
  • GNU C Library (glibc) 2.19 or later.
  • Minimum disk space should be 2 GB.
  • 4 GB Recommended (1.5 GB for Android SDK and emulator system image + 500 MB for IDE)
  • The minimum screen resolution should be 1280 x 800.

Method 1: From the Ubuntu Software centre.

We can easily install Ubuntu software from Ubuntu Software Centre but desired software must exist in the software store. To install Android Studio we can visit the Ubuntu Software Centre and search for Android Studio. Once we found the software easily click on the install button. We will get a password prompt to confirm the installation process. Once the installation gets completed we will have the Android Studio icon in our Application tray. Once it installed successfully, we can check the final setup section.

Method 2: Using The Snap Tool

When the snap tool is available it becomes to easy to install software packages. We do not have to modify any files or type in any scary scary commands. But we need to have Snap Installed in our machine in the first place. We can install Snap, using the below command:

$ sudo apt-get install snapd

Once the installation of Snap gets successful, we can proceed to install Android studio with the below command:

$ sudo snap install android-studio

It may takes some time, hence we have to wait for some minutes. It should be installed successfully, but for some reason, if it throws an error like this:


error: This revision of snap "android-studio" 
was published using classic confinement and 
thus may perform arbitrary system changes 
outside of the security sandbox that snaps are 
usually confined to, which may put your system 
at risk.


Then it installed successfully, we can check the final setup section.

$ sudo snap install android-studio --classic

Method 3: Using the Zip File

Installing Java OpenJDK

To install Android Studio we require OpenJDK version 8 or above to be installed in our system. First, we will install OpenJDK 8. The installation is very simple, we can start by updating the package index:

$ sudo apt update

Now install the OpenJDK 8 package using the below command

$ sudo apt install openjdk-8-jdk

To verify the installation we can use the below command to check the version.

$ java -version

The output will be something like this:

openjdk version "1.8.0_191"                                                    
OpenJDK Runtime Enviroment (build 1.8.0_191-8u191-b12- 2ubuntu0.18.04.1-b12)                                                            
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Installing Android Studio

To download and install the Android Studio snap package, we have to open our terminal using the Ctrl+Alt+T keyboard shortcut and type the below command:

$ sudo snap install android-studio --classic

When the installation gets completed, we will see the following output:

android-studio 3.3.1.0 from Snapcrafters installed

Now Android Studio has been installed on our Ubuntu destop.

Starting Android Studio

Once the Android Studio is installed in the system using any of the above methods, we can start Android Studio through our terminal by typing android-studio in our terminal or by clicking on the Android Studio for the first time, the below window will appear asking us to important Android Studio settings from a previous installation.



When we click on the OK button, the Setup Wizard window will appear. We have to click on the Next button to start the initial configuration and post-installation steps. Now option to choose the type of setup we want for Android studio will appear. We can select the "Standard" option or "Custom" option if we want to customize our Android Studio.



We can select the UI theme and the Setup Wizard on the next step. It will download and install the required SDK components. The process may take some time depending on our system and connection speed. Once the Android Studio IDE is loaded, the Welcome page will be presented:









Comments

Popular posts from this blog

WhatsApp में आ रहा है मैसेंजर और इंस्टाग्राम का ये बड़ा फीचर, ऐसे कर सकेंगे यूज

  मैसेजिंग एप WhatsApp जल्द ही छह इमोजी रिएक्शन लॉन्च करने वाला है। WhatsApp का नया अपडेट एंड्रॉयड के बीटा यूजर्स के लिए होगा। रिपोर्ट के मुताबिक इस अपडेट के बाद व्हाट्सएप के एंड्रॉयड यूजर्स किसी मैसेज पर रिएक्शन दे सकेंगे। बता दें कि इमोजी रिएक्शन पहले से ही इंस्टाग्राम और फेसबुक मैसेंजर पर उपलब्ध है। Discord, Slack और Telegram पर भी इमोजी रिएक्शन पहले से मौजूद है। WABetaInfo की एक रिपोर्ट में दावा किया गया है कि WhatsApp ने इमोजी रिएक्शन का अपडेट देना शुरू कर दिया है। नए इमोजी रिएक्शन फीचर को एंड्रॉयड के बीटा वर्जन 2.22.8.3 पर देखा जा सकता है, हालांकि बीटा में भी यह चुनिंदा यूजर्स के लिए ही उपलब्ध है। नए अपडेट के बाद यूजर्स को Like, Love, Laugh, Surprised, Sad और Thanks कुल छह इमोजी रिएक्शन मिलेंगे, हालांकि यूजर्स को इसमें कस्टमाइज करने की सुविधा मिलेगी या नहीं, इस संबंध में फिलहाल कोई जानकारी उपलब्ध नहीं है। WABetaInfo ने ट्वीट करके कहा है कि इमोजी रिएक्शन एंड्रॉयड के अलावा डेस्कटॉप और iOS के लिए भी आएगा।  वैसे WhatsApp ने आधिकारिक तौर पर तीनों प्लेटफॉर्म के बारे में कुछ नह...