How to install the Android Studio development environment step by step

Android Studio development environment

You can find many tutorials on this topic online, but most have one problem: they're outdated. Over time, Google has made changes to its Android development tools. These changes haven't always been well-received by users, who were forced to change their workflows or found that the manuals and guides they used were no longer up-to-date.

Fortunately, the process of installing the Android development environment is easier than ever, and we'll look at it in detail here. We'll start from the premise of having nothing installed, and our goal is to develop our first Android application, the famous " Hello World ."

What is Android Studio and what is it used for?

Android Studio software

Android Studio is the official Integrated Development Environment (IDE) for creating mobile applications for the Android operating system and, by extension, for ChromeOS . This software is based on the powerful IntelliJ IDEA tool and offers an advanced code editor along with a multitude of features designed to maximize programmer productivity.

How to create the perfect ecosystem by uniting Android and Chromebook
Related article:
How to create the perfect ecosystem by uniting Android and Chromebook

This IDE is not only for writing code, but also includes a flexible Gradle- based build system , a high-speed emulator, and specialized tools for identifying compatibility, performance, and usability issues . Furthermore, it allows you to apply code changes and new resources in real time without restarting the application, and it is compatible with C++, NDK, and Google Cloud Platform.

Advantages and Disadvantages of Android Studio

Among its main advantages , it stands out as the official tool, guaranteeing optimal performance and immediate support for new system versions. It allows for real-time rendering of layouts and the execution of applications directly from a physical mobile device. Its emulator is extremely powerful, enabling the simulation of various tablets and phones within the same environment.

However, it does have some drawbacks . Its hardware resource consumption is considerably high, which can quickly drain laptop batteries and requires a powerful machine to prevent the emulator from running slowly. Also, although NDK support exists, some users prefer additional IntelliJ plugins to optimize writing in other languages.

System Requirements for Android Studio

Android Studio Requirements

To ensure smooth performance, especially when using the Android Emulator , it's essential to meet certain specifications. Depending on whether you're using only the IDE or also the emulator, the requirements will vary:

Related article:
Android Studio is updated to add improved support for folding smartphones
  • Windows: Windows 10 64-bit or later is required. The minimum RAM is 8GB For the Studio, 16 GB is required, and if using the emulator (32 GB is recommended for complex projects). Compatibility with the virtualization (Intel VT-x or AMD-V) enabled in the BIOS. An SSD with at least 32 GB of free space is recommended.
  • macOS: Compatible with macOS 12 or later. Chips are recommended. Apple silicon or a 6th generation Intel Core processor or later. As with Windows, 16 GB of RAM is the recommended standard for running emulators smoothly.
  • Linux: Any 64-bit distribution compatible with Gnome, KDE or Unity. Requires GNU C library (glibc) 2.31 or later.

Step by Step Installation Guide

Installing Android Studio

The first step for any platform is to download the latest version from the official Android Developers website . Once you have the file, the process varies depending on the operating system:

Installation on Windows

If you downloaded the .exe file (recommended), double-click it to launch the wizard. During the process, be sure to select the "Android SDK" and "Android Virtual Device" options . The wizard will guide you through choosing the installation path. It's recommended to allocate as much RAM as possible to the emulators, provided your computer allows it, to prevent crashes during development.

Installation on macOS

Run the .dmg file and simply drag the Android Studio icon to your Applications folder . The first time you launch it, the system will ask if you want to import previous settings; if this is your first time, select no. It is essential to have the Java Development Kit (JDK) installed (version 6 or later) to avoid compatibility issues.

Android user interface repair
Related article:
Tutorial for running Linux distributions on Android without root

Installation on Linux

Download the file .tar.gz and unzip it into a suitable path (like /usr/local/ o /opt/To start the program, open a terminal, navigate to the directory android-studio/bin/ and run the command ./studio.shTo make future access easier, go to the menu Tools and select "Create Desktop Entry" to add the icon to the application launcher.

SDK and Environment Configuration

Android SDK Configuration

The SDK (Software Development Kit) is the set of libraries and tools needed for programming. When you open Android Studio for the first time, a Setup Wizard will run . We recommend choosing the standard installation , which will automatically download the emulator, platform tools, and the latest version of the Android API.

If you need to make manual changes, you can go to Preferences → Android and adjust the SDK path. Keep in mind that the SDK takes up a significant amount of disk space and will be updated frequently, so it's best to install it on a drive with ample storage.

Creation of the First Project: Hello World

First Android project

To create your first application, go to File → New → Android Application Project (or Start a new Android Studio Project in modern versions). Name it "Hello World" and choose the programming language. Currently, Kotlin is the preferred and recommended language by Google, although Java remains fully supported, making it easier to migrate an application's layer to Kotlin Multiplatform.

Creating an IoT application
Related article:
Creating an IoT application: Communication using the MQTT protocol in Android Studio

In the activity settings, you can leave it blank or choose a basic template. It's important to define the minimum API ; for example, selecting API 23 (Android 6.0) ensures your app will work on the vast majority of current devices.

Understanding the IDE Interface

  • Left Panel: It contains the file structure. The logic files reside in app/java/ and the visual design files in app/res/layout/.
  • Central Editor: Where we write the code. For the interface, you can switch between the design view (visual) and XML code view.
  • Lower Console: It displays compilation logs and errors, essential for debugging.

Android activity design

Implementation and Testing: Emulators and Real Devices

Once the code is written, it's time to test it. You have two main options:

Using the Emulator (AVD)

The Android Virtual Device (AVD) Manager lets you create virtual phones. Select the device model, resolution, and Android version. After setup, press the play button (green arrow) , and the app will load on the virtual device. This method is ideal for testing different screen sizes without having to buy multiple phones.

Android Studio Emulator

Use of a Physical Device

For a more realistic test, connect your smartphone via USB. You must first enable Developer Options and USB Debugging in your phone's settings. In Android Studio, select your device from the top dropdown list and click Run. This uses fewer RAM resources than the emulator and allows you to test real sensors like the camera or GPS.

Advanced Google Maps Platform Tutorial: Custom Overlays and Heatmaps on Android
Related article:
Advanced Google Maps Platform Tutorial: Custom Overlays and Heatmaps on Android

App running on Android

Advanced Concepts and Optimization

For those who want to go further, it's essential to understand the App Bundle format . This is the official publishing system that optimizes download size on Google Play by generating APKs specific to the user's device, drastically reducing uninstalls due to lack of space and helping to optimize app performance metrics.

Furthermore, Android Studio allows you to analyze open-source projects . You can download the code of popular apps (like Telegram) from GitHub repositories and import them into your IDE to study how they are built, analyzing their design patterns and class architecture.

To keep your environment up to date, remember to check for updates in Help → Check for Update . Google releases frequent patches to fix bugs and add new features, such as AI service integration and more accurate memory analysis tools.

Having a properly configured development environment is the first critical step for any programmer. Whether you use high-end equipment with multiple emulators or prefer the simplicity of debugging on a physical device, Android Studio provides all the necessary tools to transform an idea into a functional, professional application available to millions of users worldwide.

Data transfer protocol between Android ecosystems
Related article:
Data transfer protocol between Android ecosystems

Surfshark Antivirus for Android
It may interest you:
How to remove viruses on Android: A complete and updated guide to cleaning your phone
Add as preferred source in Google