Saturday 26 August 2017

Installing Android Studio in Linux/Ubuntu

For android app devlopment, we need Andrioid Studio, it acts as a android app development IDE like eclipse, intelliij etc.

Install Android studio for Ubuntu:

1. First install java 8.
To install Java8, use below commands from linux terminal:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
After that
sudo apt-get install oracle-java8-set-default


2. Now install Android studio.
We can do it with 2 ways.
    A. By downloading and unzipping android studio files.

Installing Android Studio

  1. Download Android Studio from here, use All Android Studio Packages
  2. Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-141.2178183-linux.zip
    sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
  3. To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below.
    You may want to add /opt/android-studio/bin to your PATH environmental variable so that you can start Android Studio from any directory.

Create a desktop file

Create a new file androidstudio.desktop by running the command:
nano ~/.local/share/applications/androidstudio.desktop
and add the lines below
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=android-studio


B. By linux command terminal

Using ubuntu-make
Ubuntu Make is a command line tool which allows you to download the latest version of popular developer tools on your installation, installing it alongside all of the required dependencies (which will only ask for root access if you don't have all the required dependencies installed already), enable multi-arch on your system if you are on a 64 bit machine, integrate it with the Unity launcher. Basically, one command to get your system ready to develop with!




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

For Ubuntu 15.10 and up
Ubuntu Make is already in official repositories, run :
sudo apt install ubuntu-make
Note that umake version should be 16.05 to be able to download android studio, check by running
umake --version
If not, use the Ubuntu 14.04 method to install it.

I am seeing in my system,

it000483@IND-PUN-LAP-183:~$ umake --version
17.03
It means, umake is installed with version 17.03 version

Then  use below commands for 

$umake android --accept-license












Its done.











No comments:

Post a Comment

Extract error records while inserting into db table using JDBCIO apache beam in java

 I was inserting data into postgres db using apache beam pipeline. it works perfectly with JdbcIO write of apache beam library. But, now, i ...