zocada

Android studio on Ubuntu – Complete installation guide

Android studio is one of the best known IDE around since JetBrains came into the game. The IDE is powered by JetBrain’s IntelliJ development environment. Ever since the development phase of android shifted from traditional eclipse based environment there have been several improvements. Android Studio has been a blessing for the developers by its vast features and ease of use for the entire development cycle of your application. Fusing it in with a Linux system brings the full power of a developer as a superuser too. we’ll explain step by step guide for installing and setting up Android studio on Ubuntu one of the popular Linux distro out there.

Update:

With the latest version of ubuntu which comes with snap package manager, You can install Android Studio using a single command.

sudo snap install android-studio --channel 

Visit snapcraft.io for more awesome apps for your Ubuntu desktop.

Old Method

Step 1: Downloading Android Studio [zip]

The official android developers website provides the latest stable version of android studio to download. Goto developer.android.com, accept the terms and conditions and download the zip file.

Step 2: Extracting the files

Once the download is completed, open the ZIP file and extract the android-studio folder to a local directory.

When the files are successfully extracted, open a terminal and cd into the folder or open the folder android-studio and right-click -> Open in terminal. now type the following command to open Android studio.

cd bin
./studio.sh

 
wait a few seconds, and you’ll see the android studio loading screen. For ease of use you can create a launcher application on to your navigation pane. Follow the instruction below to do that.

step 3: Creating a launcher for Android Studio

Fire up a terminal and cd into the android studio folder or open the extracted android-studio folder using file manager and right-click -> open in terminal in an empty space.

now we need to create a launcher file with required details about android studio. Make sure your terminals current directory is in android-studio/bin/ folder, then type the following command to open GEdit.

gedit androidstudio.desktop

 
this will open GEdit with blank file ready to edit, copy paste the following lines in to the file and save it.


 
Make sure to add the complete directory path of your android-studio folder instead of <...> and save and close GEdit.
your androidstudio.desktop file should look something like this after adding the directory path.

Once its done, open the android-studio folder using file manager and open the bin folder and you’ll see the following contents in it. Now you can double-click on the Android Studio application icon to launch android studio, Or simple click and drag the icon to your Navigation/Launcher pane for quick access.

That’s it. You have done Installing Android studio. If anything goes wrong feel free to comment down below and we’ll get back to you soon.

haxzie

Community Lead with a demonstrated history of working in a non-profit organization. Skilled in Python, Public Speaking, Graphic Design, Writing, and Android Development. Strong community and social services professional with a Bachelor's degree focused in Computer Science from Sahyadri College of Engineering and Management.