Android Studio is the official IDE for Android development, built on JetBrains’ IntelliJ IDEA platform. It includes everything you need to build, test, and debug Android applications in one place: a rich code editor, a visual layout designer, a built-in emulator, and a powerful debugger.
The build system runs on Gradle, which lets you define multiple build variants from a single project. This is useful when you need separate debug and release builds, or different configurations for different device types.
This guide shows you how to install Android Studio on Ubuntu 18.04 using Snap. The same steps work on Ubuntu 16.04, Kubuntu, Linux Mint, and Elementary OS.
Prerequisite: You need sudo access.
Install Java. Android Studio requires OpenJDK 8 or above. Install it with:
bashsudo apt updatesudo apt install openjdk-8-jdk
Verify the installation:
bashjava -version
You should see output showing openjdk version "1.8.0_191" or similar. If you have multiple Java versions installed, make sure Java 8 is the active version before proceeding.
Install Android Studio via Snap. The Snap package is the simplest method. It handles dependencies, updates, and sandboxing automatically:
bashsudo snap install android-studio --classic
The --classic flag is required because Android Studio needs full system access for the SDK tools and build system. When complete, you will see:
android-studio 3.3.1.0 from Snapcrafters installed
Start Android Studio from your terminal by typing android-studio, or open it from the Activities menu.
The first time it launches, Android Studio asks whether to import settings from a previous installation. On a fresh install, select Do not import settings and click OK.
The Setup Wizard opens automatically. Click Next to begin. You will be asked to choose a setup type. Select Standard — this installs the most commonly used components and SDK versions without extra configuration on your part.
On the following screen, choose a UI theme (light or dark) and click Next. The wizard then downloads and installs the required Android SDK components. The process may take a few minutes depending on your connection speed.
Once the SDK download finishes, click Finish. Android Studio opens the Welcome screen, where you can create a new project, open an existing one, or clone from a version control repository.
When you create a new project, Android Studio walks you through choosing a template and minimum API level. It then generates the full project structure, including Gradle build files, manifest, and starter source code. You can run your app immediately on a connected Android device or on the built-in Android Emulator.
The emulator lets you test different Android versions and screen sizes without physical hardware. You can also use the Layout Inspector to debug your UI in real time and the Profiler to monitor CPU, memory, and network usage while the app is running.
Visit the Android Studio documentation to explore the full set of tools available in the IDE.
Android Studio is now installed on your Ubuntu 18.04 system. Create a new project and start building your first Android app. Leave a comment below if you run into any issues.
The rmmod command in Linux removes a loaded module from the running kernel. Because the kernel has…
The free command in Linux gives you a quick summary of RAM and swap usage. It reads…
The diff command in Linux compares two text files line by line and shows the lines that…
DNS cache is a temporary database your OS and browser build as you browse. Each time you visit a website, the domain-to-IP mapping is saved locally, cutting out the round trip to a remote DNS server on repeat visits. Stale entries are the most common reason to flush the DNS cache: a server moves to a new IP, but your OS or browser still routes to the old address. This guide covers how to clear the DNS cache on Windows, Linux, and macOS, and how to flush the separate cache stored inside Chrome and Firefox. Flush DNS Cache on Windows The command is the same on Windows 10, Windows 11, and earlier supported releases. Open Command Prompt with administrator privileges. Type cmd in the Windows search bar, right-click Command Prompt, and select Run as…
Using a strong, unique password for every account is one of the most effective security…
Ubuntu locks the root account by default. New users often wonder what the root password…