Categories: Ubuntu

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

 

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.

Sponsored

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.

Sponsored
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.

The post How to Install Android Studio 2023.1.1/2.1 in Ubuntu 22.04, 23.10 appeared first on Osgrove.

Ubuntu Server Admin

Recent Posts

How to Fix VMware’s “Could not open /dev/vmmon” Error on Ubuntu

You’ve recently installed VMware Workstation on your Ubuntu system and encountered the frustrating “Could not…

1 hour ago

How to Fix Ubuntu 404 Errors While Fetching Dependencies

Have you ever found yourself staring at a terminal full of 404 errors while trying…

1 hour ago

How to Fix ‘Please Install All Available Updates’ Error When Upgrading Ubuntu 18.04 to 20.04 LTS

One particularly frustrating error that many users face when trying to upgrade from Ubuntu 18.04 …

1 hour ago

How to fix “Release is not valid yet” Error in Docker Containers

In the world of containerization, time synchronization issues can create unexpected roadblocks when working with…

1 hour ago

How to fix “Externally Managed Environment” Pip Errors on Ubuntu

If you’ve recently upgraded to Ubuntu 23.04 or newer, you might have encountered a frustrating…

1 hour ago

Ubuntu now officially supports NVIDIA Jetson: powering the future of AI at the edge

Canonical announces the General Availability of Ubuntu for the NVIDIA® Jetson Orin™ for edge AI…

8 hours ago