Skip to Content
Android📚 Học lập trình AndroidCài đặt Android Studio

Cài đặt Android Studio

1. Giới thiệu

Android Studio là IDE chính thức để phát triển ứng dụng Android, được xây dựng trên IntelliJ IDEA.

2. Yêu cầu hệ thống

Windows

  • Windows 8/10/11 (64-bit)
  • RAM: Tối thiểu 8GB, khuyến nghị 16GB
  • Ổ cứng: 8GB trống (SSD khuyến nghị)
  • Độ phân giải: 1280 x 800

macOS

  • macOS 10.14 (Mojave) trở lên
  • Chip Intel hoặc Apple Silicon
  • RAM: Tối thiểu 8GB, khuyến nghị 16GB
  • Ổ cứng: 8GB trống

Linux

  • Ubuntu/Debian-based distributions
  • RAM: Tối thiểu 8GB
  • Ổ cứng: 8GB trống

3. Tải Android Studio

  1. Truy cập developer.android.com/studio 
  2. Click Download Android Studio
  3. Đọc và chấp nhận điều khoản
  4. Tải file phù hợp với hệ điều hành

4. Cài đặt trên Windows

1. Chạy file .exe đã tải 2. Chọn "Next" qua các bước 3. Chọn components: Android Studio + Android Virtual Device 4. Chọn thư mục cài đặt 5. Click "Install" và đợi hoàn tất 6. Chạy Android Studio

5. Cài đặt trên macOS

1. Mở file .dmg đã tải 2. Kéo Android Studio vào folder Applications 3. Mở Android Studio từ Applications 4. Cho phép chạy app từ developer không xác định (nếu cần)

6. Cấu hình lần đầu

Khi chạy Android Studio lần đầu:

  1. Import Settings: Chọn “Do not import settings”
  2. Setup Wizard: Chọn “Standard” installation
  3. UI Theme: Chọn Light hoặc Dark theme
  4. SDK Components: Để mặc định, click “Next”
  5. Emulator Settings: Chọn RAM cho emulator
  6. Finish: Đợi download SDK và tools

7. Cấu hình SDK

Sau khi cài đặt, vào File > Settings > Languages & Frameworks > Android SDK:

SDK Platforms: ✓ Android 14.0 (API 34) - Mới nhất ✓ Android 13.0 (API 33) - Phổ biến SDK Tools: ✓ Android SDK Build-Tools ✓ Android Emulator ✓ Android SDK Platform-Tools ✓ Intel x86 Emulator Accelerator (HAXM)

8. Tạo Emulator

  1. Vào Tools > Device Manager
  2. Click Create device
  3. Chọn loại thiết bị (Phone: Pixel 6)
  4. Chọn System Image (API 34)
  5. Đặt tên và cấu hình
  6. Click Finish

9. Kiểm tra cài đặt

Tạo project mới để kiểm tra:

  1. File > New > New Project
  2. Chọn Empty Activity (Compose)
  3. Đặt tên project, chọn Kotlin
  4. Chạy trên Emulator hoặc thiết bị thật

10. Troubleshooting

SDK not found

File > Settings > Languages & Frameworks > Android SDK → Chọn đúng SDK Location

Emulator chậm

  • Bật HAXM/Hyper-V
  • Tăng RAM cho emulator
  • Dùng x86 image thay vì ARM

Gradle sync failed

File > Invalidate Caches > Restart

📝 Tóm tắt

  • Tải từ developer.android.com/studio
  • Yêu cầu: 8GB RAM, 8GB ổ cứng
  • Cài SDK phiên bản mới nhất
  • Tạo emulator để test ứng dụng
  • Kiểm tra bằng cách tạo Empty Activity project
Last updated on