[Ubuntu] Install Android Studio and create a shortcut

Recently, I am trying to migrate my Android application development environment to Ubuntu (Linux Desktop). Installing Android Studio itself is easy and works, but I've taken the time to create a shortcut so I'd like to summarize it.

install

Installing Android Studio is easy, just download Android Studio and unzip it to any location. This time, extract Android Studio to / opt and install it.

  1. Download Android Studio
  2. Open the terminal
  3. Extract the downloaded file to / opt with the tar command.
$ cd /opt
$ tar -zxvf ~/Downloads/android-studio-ide-192.6392135-linux.tar.gz /Desktop

Image from Gyazo

Create a shortcut (Desktop file)

The installed Android Studio can be started by running /opt/android-studio/bin/studio.sh. However, it is troublesome to start from the terminal every time, so create a shortcut (Desktop file) so that it can be started from the Ubuntu launcher.

Image from Gyazo

  1. Open the terminal
  2. Open the file with gedit ~ / .local / share / applications / android-studio.desktop
  3. Describe and save android-studio.desktop according to How to write Desktop file.
  4. Grant execute permission to the file with chmod 773 ~ / .local / share / applications / android-studio.desktop
  5. Log out and log in

** Desktop file description example **

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Android Studio
Commend=Android Studio
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/studio.png

Once you've created the shortcut, you'll be able to launch Android Studio from the Ubuntu launcher.

Image from Gyazo

Recommended Posts

[Ubuntu] Install Android Studio and create a shortcut
[Azure] Create, deploy, and relearn a model [ML Studio classic]
Create a partition and then install the Raspberry Pi OS
Install Mecab and mecab-python3 on Ubuntu 14.04
Install and run dropbox on Ubuntu 20.04
Install OpenCV and Chainer on Ubuntu
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Install fabric on Ubuntu and try
[MariaDB] Install MariaDB on Linux and create a DB and an operating user.
Install Puppet Master and Client on Ubuntu 16.04
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Until you create an Ubuntu boot USB on your Macbook and install Ubuntu on your Thinkpad
Install and set Jupyter Notebook to create a study note creation environment [Mac]
Install pip and pandas with Ubuntu or VScode
Create a layout by combining Dash and Bootstrap
Create a Mac app using py2app and Python3! !!
Install MongoDB on Ubuntu 16.04 and operate via python
Create a color sensor using a Raspberry Pi and a camera
Create a native GUI app with Py2app and Tkinter
Install Apache 2.4 on Ubuntu 19.10 Eoan Ermine and run CGI
I got a UnicodeDecodeError when pip install on ubuntu
Create a batch of images and inflate with ImageDataGenerator
Create a 3D model viewer with PyQt5 and PyQtGraph
Install Ubuntu 20.04 with GUI and prepare the development environment
[kotlin] Create a real-time image recognition app on android
Create a decent shell and python environment on Windows
[Linux] Create a self-signed certificate with Docker and apache
I made a tool that makes it a little easier to create and install a public key.