How to Install Android Studio 2023.1.1/2.1 in Ubuntu 22.04, 23.10

0
261

This simple tutorial shows how to install the latest Android Studio 2023.1.1 or 2023.2.1 in Ubuntu 22.04, Ubuntu 23.10.

Android Studio, the official IDE for Android app development, is easy to install in Ubuntu in different ways! They include Snap, Flatpak, and official tarball.

Method 1: Install Android Studio via Snap package

The easiest way to install the IDE is using the Snap package, which however run in sandbox.

Simply launch Ubuntu Software (or App Center for 23.10), then search & install Android Studio:

Method 2: Install Android Studio via Flatpak package

The IDE is also available to install as Flatpak package, which also runs in sandbox.

Linux Mint 21 users may simply search for & install it from “Software Manager”.

Install Android Studio as Flatpak in Linux Mint

And, Ubuntu users in favor of Flatpak can install the package, by running 2 commands in terminal (Ctrl+Alt+T) one by one:

Method 3: Install Android Studio via Official Tarball

For those who don’t like running apps in sandbox, Android website provides official tarball for Linux.

Option 1: Use Ubuntu PPA

The tarball does NOT include app menu integration. Without doing the job manually, there’s an Ubuntu PPA contains script to automatically download the tarball and create app shortcut for it.

It’s a trustworthy PPA repository maintained by Maarten Fonville, a member of Ubuntu Users and KUbuntu Testers teams.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When terminal opens, run command to add the PPA:

sudo add-apt-repository ppa:maarten-fonville/android-studio

Type user password when it asks (no asterisk feedback) and hit Enter to continue.

2. After adding PPA, Linux Mint user need to manually refresh system cache, though it’s done automatically now in Ubuntu.

sudo apt update

3. Finally, install the package:

sudo apt install android-studio

The PPA contains installer for multiple versions of the IDE. Besides installing the latest stable, you may also paste the last command into terminal and hit “Tab” to list other choices. For example, install the 2023.2.1 from Canary channel via command:

sudo apt install android-studio-2023.2.1

As mentioned above, the PPA package will automatically download the tarball from the official download link, install it, and create app menu integration for you.

When done, simply search for and launch the IDE from start menu, application menu, or ‘Activities’ overview depends on your Desktop environment.

Option 2: Manually download & install the tarball

If you don’t trust any third-party sources, simply go to Android website via the link below and click download the tarball.

Then, extract the tarball, and move the sub-folder to anywhere as you want for long time use.

To create app shortcut from launching Android Studio from start menu:

If everything’s done properly, you should be able to launch it from your system main menu.

Uninstall Android Studio

Depends on how you installed the package, remove the IDE by:

  • For the Snap package, simply remove from Ubuntu Software.
  • For Flatpak package, open terminal and run command:
    flatpak uninstall --delete-data com.google.AndroidStudio

    Also run flatpak uninstall --unused to remove useless run-times.

  • For Ubuntu PPA package, run command:
    sudo apt remove --autoremove android-studio*

If you downloaded & installed the tarball manually, then just remove the source folder as well as .desktop shortcut file under .local/share/applications directory.

LEAVE A REPLY

Please enter your comment!
Please enter your name here