Installing Android Studio and Creating a Kotlin Project

08.04.2025
17:27

If you're using Ubuntu 24.04 and want to start developing for Android, this guide will help you quickly set up Android Studio.

Installing Android Studio

Android Studio is an IDE for building Android apps. It includes a code editor, debugger, device emulator, and everything else a developer might need.

But first, make sure Java is installed — Android Studio won’t run without it. Open a terminal and enter:

sudo apt update && sudo apt upgrade -y  

sudo apt install default-jdk -y  

java -version

If the Java version appears, you’re good to go.

Now download Android Studio from theofficial website — make sure to choose the Linux version. After downloading, go to the folder with the archive and extract it:

tar -xvf android-studio-*-linux.tar.gz  

sudo mv android-studio /opt/

To launch Android Studio:

cd /opt/android-studio/bin  

./studio.sh

The setup wizard will open. Just follow the prompts — the installer will download the SDK and everything you need automatically.

Creating a Kotlin Project

Kotlin support is built into Android Studio, but you need to explicitly enable it when creating a new project.
1. On the start screen, click New Project.

2. Select a template — for example, Empty Activity.

3. In the project settings, choose Kotlin as the language.
Android Studio will then generate the project, fetch the required dependencies, and open the interface with your files.

15% discount on new VPS
Hurry up to order a server in any location
Choose a VPS

Other articles

08.04.2025
2 177
Knowledge base / Instructions / Android
Scrcpy: A Program for Controlling Your Smartphone from Your Computer
08.04.2025
2 305
Knowledge base / System
How to Set Up Automatic USB Drive Mounting at Linux Startup