This tutorial is all about installing android studio on linux (ubuntu,fedora,opensuse…..). If you are android app developer and using windows os and feeling your system is slow despite using a decent processor with 16GB RAM, then try atleast once Linux for android app developement , I assure you love Linux stability and speed.
Android Studio Installation Process
- Download Android Studio , use All Android Studio Packages.
- Extract the archive file into an appropriate location for your applications, eg: /opt . …
- To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh .
Android Studio Installation in Details
Download latest version Android studio from
https://developer.android.com/studio/index.html
In my case downloaded file : android-studio-ide-141.2178183-linux.zip
For Zip, extract android studio in /opt folder
Method 1
sudo unzip filename.zip -d /opt
Example
sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
sudo -xpf file.zip /opt
Method 2
Download file and right click on file and extract. Now Run the command below
to copy extracted folder to /opt
sudo cp -pr android-studio-ide-141.2178183-linux /opt
For tar.gz file, extract android studio in /opt folder
sudo tar xvfz filename.tar.gz -C /opt
Create a desktop file
nano ~/.local/share/applications/androidstudio.desktop
and add code below and save
[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
Now You can launch Android Studio using menu under sub menu Development, if this process fail you launch android studio using terminal using command given below
sudo /opt/android-studio/bin/studio.sh
Note
for 64 bit install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 from your package manager ,for ubuntu,debian use command below to install
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Or
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6