How to Install Android Studio on CentOS 7

r00t June 11, 2018

Install Android Studio on CentOS 7

In this tutorial we are going to learn how to install Android Studio on CentOS 7. We will also install and configure its prerequisites. Android Studio is an official IDE for android development. Developed by Google and Jetbrains, Android Studio is popular IDE tool that’s available for Windows, Mac and Linux based system.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Android Studio on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Install Java.

You need to install JDK 1.6 or later. First, download the latest version of JDK. In case you already have an older version installed, remove the same before installing the new one:

rpm -ivh jdk-8u65-linux-x64.rpm

Next, Set environment variables for java installation:

export JAVA_HOME=/usr/java/jdk1.8.0_25/
export PATH=$PATH:$JAVA_HOME

Now check java version:

[root@myvpsource.net ~]# java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

Step 3. Install Android Studio on CentOS 7.

First, downloading the ide file from Android site and unzipping the same:

unzip android-studio-ide-173.4720617-linux.zip

Move android-studio directory to /opt directory:

mv /tmp/android-studio/ /opt/

Next, create a simlink to the studio executable to quickly start it whenever you need it:

ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio

Finally steps, Run Android Studio:

[root@myvpsource.net ~]# studio

Congratulation’s! You have successfully install Android Studio on your CentOS 7 server. Thanks for using this tutorial for installing Android Studio on CentOS 7 system.

Leave a Comment

Comments are closed.