Skip to the content.

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

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

Done! The app should build and deploy to your Wear OS device/emulator.


Switching Between Modules

  1. Click the run config dropdown in Android Studio
  2. Select your desired module
  3. 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

Android Studio will automatically detect and create emulators. Just:

  1. Click Run
  2. Choose Create New Virtual Device
  3. Select “Wear OS” category
  4. 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

  1. Check device connection: adb devices
  2. 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 connect round trip - see WEAR_OS_SETUP.md “Physical Wear Device”
  3. Try: .\gradlew.bat :wear:installDebug --info

Emulator is slow


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

  1. ✅ Build and run the app
  2. 📖 Read WEAR_OS_SETUP.md for complete guide
  3. 🔧 Check AGENTS.md for development workflow
  4. 🧪 Write tests: wear/src/test/ and wear/src/androidTest/
  5. 📤 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.