Wear OS Quick Start - Running in Android Studio
TL;DR - Get Running in 5 Minutes
Step 1: Sync Gradle (First Time Only)
File → Sync Now
Step 2: Select Run Configuration
- In the Android Studio toolbar, find the Run Configuration dropdown
- Select wear from it
The dropdown starts empty on a fresh clone and fills in after the sync above. The repository ships no run configuration and no default module - .idea/ is gitignored, so this choice is local to your machine. See MODULE_SELECTION.md for the full explanation.
Step 3: Launch
- Click the green Run button (or press Shift+F10)
- Select target device/emulator from dialog
Done! The app should build and deploy to your Wear OS device/emulator.
Switching Between Modules
- Click the run config dropdown in Android Studio
- Select your desired module
- Click Run
For a build that does not depend on IDE state at all, use the command line instead - see Running Without Android Studio below.
For details: See MODULE_SELECTION.md
Settings Organization
Wear settings are grouped into Media Types, Slideshow, Other, and About. The owner ruled on 2026-08-16: two settings about the same thing earn a new group; a single setting with no relatives lives in Other until relatives appear, then it moves into that new group. This keeps the root screen short while allowing the watch app’s settings to grow without returning to one flat list.
Running Without Android Studio
Quick Build + Deploy
From PowerShell in project root:
# Build APK
.\scripts\builders\build-wear-debug.PS1
# Deploy (if device connected via ADB)
.\gradlew.bat :wear:installDebug
Manual APK Installation
# Install debug APK to device
adb install .\wear\build\outputs\apk\debug\wear-debug.apk
# Launch app
adb shell am start -n com.sza.fastmediasorter.debug/com.sza.fastmediasorter.wear.MainActivity
Setting Up Wear OS Emulator
Auto-Setup (Recommended)
Android Studio will automatically detect and create emulators. Just:
- Click Run
- Choose Create New Virtual Device
- Select “Wear OS” category
- Follow wizard
Manual AVD Manager
Tools → Device Manager → Create Device
→ Select "Wear OS Large Round" (or your preferred model)
→ API 30+ (Wear OS 3.0 or later)
→ Finish
Configuration Files
| File | Purpose |
|---|---|
wear/build.gradle.kts |
Module build config (uses KSP, not KAPT) |
docs/WEAR_OS_SETUP.md |
Complete setup guide |
Troubleshooting
“Module not found” error
# Reload project
File → Sync Now (Ctrl+Shift+Y)
Compilation fails with annotation processor errors
Already fixed! This project uses KSP instead of deprecated KAPT for annotation processing.
APK deployment fails
- Check device connection:
adb devices - Enable debugging on the watch (Settings → Developer Options). A dockless watch such as Samsung
Galaxy Watch has no USB data path and needs Wireless debugging plus an
adb pair/adb connectround trip - see WEAR_OS_SETUP.md “Physical Wear Device” - Try:
.\gradlew.bat :wear:installDebug --info
Emulator is slow
- Disable animations in emulator
- Allocate more RAM: Emulator Settings → RAM
What’s Different About Wear OS
| Feature | Wear OS | Phone |
|---|---|---|
| Screen Size | 380x380 or 454x454 | 1080x2400+ |
| Input | Rotary, touch, buttons | Touch, gestures |
| Battery | Critical | Important |
| CPU | Low-power | Full power |
| Memory | Limited (~500MB) | Ample |
| UI Framework | Compose for Wear OS | Material 3 Compose |
Result: Simplified UI, no complex transitions, minimal animations, optimized layouts in values-sw480dp/.
Next Steps
- ✅ Build and run the app
- 📖 Read WEAR_OS_SETUP.md for complete guide
- 🔧 Check AGENTS.md for development workflow
- 🧪 Write tests:
wear/src/test/andwear/src/androidTest/ - 📤 Build release:
.\scripts\builders\build-wear-release.PS1
Key Commands
# Fast checks (wear module - the app_v2 checks do not cover it)
.\a.ps1 fw # Kotlin compile check
.\a.ps1 fwr # Resources / manifest check
.\a.ps1 fwu # Unit suite
# Build
.\scripts\builders\build-wear-debug.PS1 # Fast debug build
.\scripts\builders\build-wear-release.PS1 # Optimized release
# Clean
.\gradlew.bat :wear:clean
# Test
.\gradlew.bat :wear:testDebugUnitTest
# Lint
.\gradlew.bat :wear:lintDebug
# Analyze dependencies
.\gradlew.bat :wear:dependencies
Emulator Shortcuts
| Shortcut | Action |
|---|---|
| Ctrl+M | Stop and restart app |
| Ctrl+R | Reload app |
| F6 | Take screenshot |
| Ctrl+Shift+Z | Open AVD Manager |
Happy developing! 🚀
For issues, see WEAR_OS_SETUP.md or check AGENTS.md development guidelines.