🟢 शुरुआत · Lesson 02
Android Studio और SDK install करें
System requirements
| Minimum | आरामदायक | |
|---|---|---|
| RAM | 8 GB | 16 GB या ज़्यादा |
| Disk | 16 GB खाली (SSD बहुत ज़रूरी) | 30 GB+ SSD |
| CPU | 64-bit, virtualization enabled | नया Intel/AMD या Apple Silicon |
| OS | Windows 10/11 64-bit, macOS, या 64-bit Linux | |
Android Studio install करें
- 1developer.android.com/studio खोलकर latest stable version download करें
- 2Windows: .exe चलाएँ और "Android Virtual Device" checked रखें · Mac: Applications में drag करें
- 3Android Studio खोलें → "Do not import settings" चुनें
- 4"Standard" install type और light या dark theme चुनें
- 5सारे licences accept करके Finish — SDK download होता है (1–3 GB)
Setup wizard और SDK
SDK Manager: क्या install करें
More Actions → SDK Manager (या Settings → Android SDK):
- SDK Platforms: latest Android version (API 35) —
compileSdkके लिए ज़रूरी। - SDK Tools: Android SDK Build-Tools, Platform-Tools (adb), Android Emulator, Google USB Driver (सिर्फ़ Windows)।
Emulator (AVD) बनाएँ
- 1More Actions → Virtual Device Manager → Create device
- 2Pixel 8 जैसा phone चुनें → Next
- 3System image चुनें (latest API, x86_64 या Apple Silicon पर arm64) → download
- 4Finish → emulator शुरू करने के लिए ▶ दबाएँ
असली phone (USB debugging)
- 1Settings → About phone → "Build number" पर 7 बार tap → "You are now a developer"
- 2Settings → System → Developer options → USB debugging on करें
- 3USB cable लगाएँ → phone पर "Allow USB debugging?" allow करें
- 4Android Studio में ▶ के बगल वाले device dropdown में phone दिखेगा
Terminal – device check करें
# Android Studio Terminal (bottom bar) – list connected devices adb devices List of devices attached R58N12ABCDE device ← your phone emulator-5554 device ← the emulator
Wireless debugging
Android 11+ पर बिना cable के debug कर सकते हैं (phone और laptop एक ही Wi-Fi पर)। Android Studio में Device Manager → Pair devices using Wi-Fi से QR code scan करें, या adb use करें:
Terminal
# Phone: Developer options → Wireless debugging → Pair device with pairing code adb pair 192.168.1.23:37155 # enter the 6-digit code shown on the phone adb connect 192.168.1.23:41733 # the IP:port shown on the Wireless debugging screen
आम setup errors
| Error | Fix |
|---|---|
| "HAXM / hypervisor not installed" / emulator शुरू नहीं होता | BIOS में virtualization (Intel VT-x / AMD-V) enable करें; Windows पर "Windows Hypervisor Platform" on करें। |
| Gradle sync बहुत देर लेता है | पहला sync libraries download करता है — internet on रखें। बाद के syncs तेज़ होते हैं। |
| Device list में phone नहीं दिखता | Data cable use करें (सिर्फ़ charging वाली नहीं), Windows पर Google USB Driver install करें, RSA prompt accept करें। |
| Disk full | SDK Manager में बेकार system images और पुराने AVDs delete करें। |
सारांश
- Android Studio (Standard setup) install करें — यह SDK और JDK साथ लाता है।
- SDK Manager: latest platform + platform-tools + emulator।
- AVD पर या USB/wireless debugging वाले phone पर test करें।
✅ Practice
एक emulator बनाइए और अपना phone connect कीजिए। adb devices चलाकर confirm कीजिए दोनों दिखते हैं।
अक्सर पूछे जाने वाले प्रश्न (FAQ)
क्या 8 GB RAM पर Android Studio चल सकता है?
हाँ, पर emulator धीमा होगा। दूसरी apps बंद करें और emulator की जगह USB debugging से असली phone पर test करें।
क्या Java अलग से install करनी पड़ती है?
नहीं। Android Studio में अपना JDK (JetBrains Runtime) आता है जिसे Gradle default रूप से use करता है।
Android SDK कहाँ install होता है?
Windows पर आमतौर पर C:\Users\\AppData\Local\Android\Sdk, macOS पर ~/Library/Android/sdk। Settings → Languages & Frameworks → Android SDK में देख सकते हैं।
