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

Last updated: December 13, 2023 — 2 Comments

 

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:

  • Install the Flatpak daemon:
    sudo apt install flatpak
  • Install Android Studio as Flatpak package:
    flatpak install https://dl.flathub.org/repo/appstream/com.google.AndroidStudio.flatpakref

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:

  • First launch text editor and add following lines to an empty file:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Name=Android Studio
    Comment=Integrated Android developer tools for development and debugging.
    Exec=/path/to/studio.sh
    Icon=/path/to/studio.svg
    Categories=GNOME;GTK;Development;IDE;
  • Replace /path/to/studio.sh and /path/to/studio.svg according where you save the source folder. Press Ctrl+L in that folder to quickly copy the PATH.
  • Finally, save the file to .local/share/applications as name android-studio.desktop

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.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

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

  1. I installed it using JetBrains Toolbox

  2. Thanks for your information, i try on ubuntu 24.04 ‘noble numbat’ development branch

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*