DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for How to install Android Studio on Linux? | Snap Package
Johnny Meneses
Johnny Meneses

Posted on

How to install Android Studio on Linux? | Snap Package

We will install Android studio by snap package. I'll show you how to do it on Debian or Ubuntu.

But first: What is Android Studio?

Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA.
A lot of fancy words.

Android Studio provides a unified environment where you can build apps for Android phones, tablets, Android Wear, Android TV, and Android Auto.

And Snap Package? What is it? Is safe? I can remove if I want to?

Snaps are self-contained applications running in a sandbox with mediated access to the host system, work across a range of Linux distributions and allow upstream software developers to distribute their applications directly to users.

Is safe as long as you uses the official repository.

Here I'll install the latest version of Android Studio:
Chipmunk | 2021.2.1

Android Studio: Chipmunk

To install snaps app, we need Snapd.

Ubuntu

$ sudo apt update 
$ sudo apt install snapd 
Enter fullscreen mode Exit fullscreen mode

To install Android Studio, just execute this line

$ sudo snap install android-studio –classic 
Enter fullscreen mode Exit fullscreen mode

Debian

On Debian 9 and newer, snap can be installed directly from the command line:

$ sudo apt update 
$ sudo apt install snapd 
$ sudo snap install core 
Enter fullscreen mode Exit fullscreen mode

Before install Android Studio, you can search for the latest version with this command:

$ snap find "android-studio"
Enter fullscreen mode Exit fullscreen mode

Terminal showing snap versions of Android Studio description

To install Android Studio, simply use the command:

$ sudo snap install android-studio --classic 
Enter fullscreen mode Exit fullscreen mode

The download will start. Upon completion, simply follow the on-screen instructions.
Easy peasy lemon squeezy.

How to Update?

$ sudo snap refresh android-studio –classic 
Enter fullscreen mode Exit fullscreen mode

How to Remove?

$ sudo snap remove android-studio –classic 
Enter fullscreen mode Exit fullscreen mode

If you have some doubts, text me.

Top comments (3)

Collapse
 
rauldipeas profile image
Raul Dipeas

There's a deb package on Android Studio website that works flawlessly on Ubuntu.
developer.android.com/studio
It's indicated as for Chrome OS, but it doesn't matter at all.

Collapse
 
michaelllls profile image
Michaelllls

Great post

Collapse
 
johnnymeneses profile image
Johnny Meneses Author

Thanks :D

πŸ‘‹ Welcome the newest DEV members

Head over to our Welcome Thread and say hello!