how to install android studio in ubuntu 16.04 using terminal

Android Studio for Linux or Ubuntu is an open-source IDE and developer tool built by Google. To develop apps for Android phones, tablets, and other android devices. It probably the fastest way for building apps on every kind of Android device. And this brief tutorial shows new users how to install it on Ubuntu 16.04 | 18.04 and 18.10 systems.

If you’re going to start android application development for Android devices. And other android supportive devices such as Android TV. Then you may do it using Android Studio IDE. If works across multiple platforms including, Windows, Mac OS, and Linux

Android Studio has so many features such as code editing, debugging, check performance build system, or instant build/deploy. For more features visit the android studio official website or homepage.

To install Android Studio on Linux or Ubuntu ,Please follow These steps .

Option 1. Android Studio Installation Using Google Repository

Installing Android Studio via Google repository is that the default method. What you are doing is, download the installer and use it to download all required components for Android Studio To download and install Android Studio via Google repository. attend the link below to download the zipped file for the Linux system.

First install OpenJDK 8 on Ubuntu. To install JDK 8. run this command

sudo apt update
sudo apt install openjdk-8-jdk

After that, go to the link below to download it..

https://developer.android.com/studio

If you want to use the command line, then run the commands below to download into the /tmp directory… Remember, at the time of this writing, this ( 4.0.1 ) was the latest version… The link might change when a new version is released…

wget https://dl.google.com/dl/android/studio/ide-zips/3.2.1.0/android-studio-ide-181.5056338-linux.zip -P /tmp

Next, run the commands below to extract the downloaded file to the /opt directory…

sudo unzip -d /opt /tmp/android-studio-ide-181.5056338-linux.zip

Run the commands below to initiate the installation wizard…

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

That should start up the installation wizard. If this is a new installation, choose not to import settings…

Then click Next to continue with the installation wizard

After that, choose the Standard installation and continue… If you’re an advanced user, choose custom and continue

Next, choose the theme you wish to use and continue

Finally, click Finish to begin the downloading and installation all packages… this should take a while depending on your internet connection

If you select the Custom installation, you’ll choose where to install Android Sdk

After a while, Android Studio should be installed and ready to use… the default home directory should be in your home folder or as defined above

To configure Android Studio environment variables on Ubuntu, run the commands below:

gedit ~/.bashrc

Then copy and paste these lines below at the top of the file and save… Replace the highlighed text with your own name or account name

export ANDROID_HOME=/home/parsh/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Save the file

Option 2. Install Android Studio via Snap

Another way to get Android Studio installed is via Snap package management… Snaps are containerized software packages that are simple to create and install….They are applications packaged with all their dependencies to run on all popular Linux distributions from one build which permit them to update automatically and roll back gracefully

This might be the easiest way to get Android Studio on Linux systems, including Ubuntu… To install, run the commands below install Snap

sudo apt update
sudo apt install snapd

Then run the commands below to get Android Studio installed via Snap

sudo snap install android-studio --classic

When you first launch the app, it will download and install all require packages to get Android Studio working on Ubuntu… Follow the same wizard as above to complete the installation…

PARSH:

This website uses cookies.