Ubuntu 19.04: Install Android Studio 3.4

This article will describe installing Android Studio 3.4.

1 Install Android Studio

Install Android Studio.

#!/bin/sh -e


sudo apt install -y \
     gcc-multilib g++-multilib libc6-dev-i386 qemu-kvm mesa-utils

URL=https://dl.google.com/dl/android/studio/ide-zips/3.4.1.0
wget -q ${URL}/android-studio-ide-183.5522156-linux.tar.gz
sudo tar zxf android-studio-ide-*linux.tar.gz -C /opt/
rm -f android-studio-ide-*-linux.tar.gz

sudo mkdir -p /usr/local/share/applications
cat <<EOF | sudo tee /usr/local/share/applications/android-studio.desktop
[Desktop Entry]
Type=Application
Name=Android Studio
Icon=/opt/android-studio/bin/studio.png
Exec=/opt/android-studio/bin/studio.sh
Terminal=false
Categories=Development;IDE;
EOF

sudo gpasswd -a "${USER}" kvm
sudo reboot

2 Run Android Studio

Run android-studio.desktop at the launcher or run the following command at the terminal.

$ /opt/android-studio/bin/studio.sh

0001_AndroidStudio.png