четверг, 23 мая 2013 г.

Installing Android Studio on Linux



Hello to everybody. Hope you heard about new IDE created by Google for Android developers named Android Studio. So the story begins when I tried to install it on my OpenSuse netbook. I've read a lot of manuals and articles before succeeded to run it. So if you experience some problems to run Android Studio on your Linux PC, read this and I hope you'll manage to win.


First of all we need to download it from http://developer.android.com. Here is the download link:

http://developer.android.com/sdk/installing/linux-studio


Next, after downloading we have a .tgz archive which we need to untar.

sudo tar -xzf ./android-studio-bundle-130.677228-linux.tgz


After that we have a folder named android-studio.


Now all we need is to install Java from Oracle.

Go to Oracle website and download suitable version for your architecture, e.g. jdk7u21-linux-x64.rpm

Then you need to install that package:

sudo rpm -ivh ./jdk7u21-linux-x64.rpm


After all those manipulation you might think that everything's ready, but no. We also need to validate environmental variables:

cd /usr/java

export JAVA_HOME=/usr/java/jdk1.7.0_21/

export PATH:$PATH:$JAVA_HOME/bin


Then we go to android-studio/bin folder and run

./studio sh


And here we go. We are ready to create awesome apps for our favorite platform.