DEV Community

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

Posted on

5 3

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (2)

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
 
johnnymeneses profile image
Johnny Meneses

Thanks :D

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay