Getting Started with Android Development
Android powers over 2.5 billion active devices worldwide, making it the most popular mobile operating system on the planet. Whether you want to build the next billion-dollar app, create a personal project, or start a career as a mobile developer, this guide will get you up and running.
Production Reality: Setting up your development environment correctly is the first and most important step. A properly configured Android Studio with the right SDKs and a working emulator will save you hours of frustration down the line.
1. What You Need to Get Started
| Requirement | Details |
|---|---|
| Operating System | Windows (10/11), macOS (10.15+), or Linux (Ubuntu 20.04+) |
| RAM | Minimum 8GB (16GB recommended) |
| Storage | Minimum 10GB free (Android Studio + SDK + Emulator = ~20-30GB) |
| Internet | Required for downloading SDK components and dependencies |
2. Installing Android Studio
Android Studio is the official Integrated Development Environment (IDE) for Android development, based on IntelliJ IDEA.
Step 1: Download Android Studio
Visit developer.android.com/studio and download the latest version for your operating system.
Step 2: Install Android Studio
Windows
- Run the
.exeinstaller and follow the wizard. - Choose the installation path (default:
C:\Program Files\Android\Android Studio). - Launch Android Studio after installation.
macOS
- Open the
.dmgfile and drag Android Studio into the Applications folder. - Open Android Studio from the Applications folder.
Linux
- Extract the
.tar.gzfile to a location of your choice. - Run
./studio.shfrom the extracted directory.
Step 3: Install Required SDK Components
When you first launch Android Studio, it will prompt you to install the Android SDK and other essential components:
- Android SDK Platform — The core Android framework (latest stable version)
- Android SDK Build-Tools — Tools for building and compiling your app
- Android Emulator — To run your apps on a virtual device
- Android SDK Platform-Tools — Tools like ADB for debugging
Pro Tip: Always install the latest stable versions of the SDK Platform and Build-Tools. Don't install every version — it will consume unnecessary disk space.
3. Creating Your First Project
Step 1: Start a New Project
- Click New Project on the Android Studio welcome screen.
- Select Empty Views Activity — the best starting point.
- Configure your project:
- Name: Your app name (e.g., "My First App")
- Package Name: The unique identifier (e.g.,
com.yourname.myfirstapp) - Save Location: Where your project files will be stored
- Language: Kotlin (recommended) or Java
- Minimum SDK: Choose API 24 or higher
- Click Finish and wait for the project to build.
Step 2: Understand the Project Structure
MyFirstApp/
├── app/
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/ ← Your Kotlin/Java source code
│ │ │ │ └── com/yourname/myfirstapp/
│ │ │ │ ├── MainActivity.kt
│ │ │ ├── res/ ← Resources (layouts, images, strings)
│ │ │ │ ├── layout/
│ │ │ │ │ └── activity_main.xml
│ │ │ │ ├── values/
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── themes.xml
│ │ │ │ └── drawable/ ← Images and icons
│ │ │ └── AndroidManifest.xml ← App configuration
│ └── build.gradle ← App-level build configuration
├── build.gradle ← Project-level build configuration
└── settings.gradle
4. Running Your First App
Step 1: Set Up an Emulator
- Click the AVD Manager icon in the toolbar.
- Click Create Virtual Device.
- Select a device model (e.g., Pixel 6).
- Select a system image (e.g., API 35).
- Click Finish to create the emulator.
Step 2: Run the App
- Select your emulator from the device dropdown in the toolbar.
- Click the green Run button (▶).
- Wait for the app to build and install on the emulator.
- You should see "Hello World!" displayed on the emulator screen.
Common Issues: If the emulator is slow, enable Hardware Acceleration (HAXM on Windows, Hypervisor.framework on macOS). If the build fails, check your internet connection for downloading dependencies.
5. Hello World — The Code
MainActivity.kt (Kotlin)
package com.yourname.myfirstapp
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContentView(R.layout.activity_main)
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
insets
}
}
}
activity_main.xml (Layout)
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
6. Production-Ready Checklist
- ✅ Install Android Studio — Latest stable version from developer.android.com.
- ✅ Install Android SDK — Latest platform and build-tools.
- ✅ Set up an emulator — Create at least one virtual device.
- ✅ Create a project — Use Kotlin for modern development.
- ✅ Run your app — Test on both emulator and physical device.
- ✅ Understand project structure — Know where code, resources, and manifest are located.
- ✅ Enable hardware acceleration — For faster emulator performance.
- ✅ Configure Git — Version control is essential for any project.
Key Takeaway: Getting Android Studio installed and running your first app is the hardest step. Once you've seen "Hello World" on the emulator, you're officially an Android developer!
PreviousYou're at the beginning!
Next What is Android and Why to use it?
Ready to master Android Development?
Build real-world Android apps with hands-on projects, mentor-led sessions, and placement support.
.png)