Sunday, February 19, 2017

How to install Android Studio on Ubuntu

So I recently moved from Windows to Ubuntu 16.04

Here is a tutorial on how to install android studio on Ubuntu

Step 1: Install java version 8 on ubuntu

Open Terminal (Keyboard shortcut: Alt + Control +T or open via Dash just type Terminal and click)

Run the following commands on terminal one by one
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
 
Finally set oracle java as default

sudo apt-get install oracle-java8-set-default 
 
Now proceed to install android studio as follows



  1. Download Android Studio from here, use All Android Studio Packages

    I downloaded the package through firefox in default Downloads folder. If you are downloading to any other place, provide that location in next step
  2. Extract the archive file into an appropriate location for your applications, For example - I am unzipping android-studio-ide-145.3537739-linux.zip in /opt directory
    sudo unzip /home//Downloads/android-studio-ide-145.3537739-linux.zip -d /opt
     
    should be substituted with your username on ubuntu
  3. Now to launch android studio we need to navigate to opt/android-studio/bin
    So type in terminal
    cd
    opt/android-studio/bin
  4. Now you are in right directory type the following to execute
    ./studio.sh

Viola! Android studio should launch. It may ask to download files to update. It will create a shortcut for android studio on Ubuntu dash.


Do comment if this tutorial helped you. Happy coding! :)

Source: http://askubuntu.com/questions/634082/how-to-install-android-studio-on-ubuntu

No comments:

Post a Comment