Skip to the content.

Wear OS Build Configuration Summary

Date: January 27, 2026
Status: ✅ Ready for Development

What’s Been Set Up

1. Annotation Processing Migration

2. Compilation Errors Fixed

All compilation errors resolved:

3. Android Studio Run Configurations

Created two production-ready configurations with Wear OS as default:

Configuration Location Build Type Purpose Default
wear [Debug] .idea/runConfigurations/wear__Debug_.xml Debug Fast iteration, debuggable ✅ Yes
wear [Release] .idea/runConfigurations/wear__Release_.xml Release Production, optimized -

Default Behavior:

4. Module Selection Setup

Added interactive module selection:

5. Build Scripts

Already available in scripts/:

6. Documentation

Comprehensive guides created:

Document Path Purpose
WEAR_OS_QUICK_START.md docs/WEAR_OS_QUICK_START.md Get started in 5 min
WEAR_OS_SETUP.md docs/WEAR_OS_SETUP.md Complete setup guide
MODULE_SELECTION.md docs/MODULE_SELECTION.md Switch between modules

Build Status

BUILD SUCCESSFUL in 11s
40 actionable tasks: 14 executed, 26 up-to-date

APK Generated: wear/build/outputs/apk/debug/wear-debug.apk (7.04 MB)

How to Use

In Android Studio

  1. Sync Gradle: File → Sync Now
  2. Select: wear [Debug] from Run Configuration dropdown
  3. Click: Green Run button
  4. Select: Your device/emulator

From Command Line

# Build and deploy
.\scripts\builders\build-wear-debug.PS1

# Or use Gradle directly
.\gradlew.bat :wear:assembleDebug

Technical Details

Architecture

Module Structure

wear/
├── src/main/
│   ├── java/com/sza/fastmediasorter/wear/
│   │   ├── ui/           # Compose screens
│   │   ├── domain/       # Business logic
│   │   ├── data/         # Network & storage
│   │   └── di/           # Hilt modules
│   ├── res/
│   └── AndroidManifest.xml
└── build.gradle.kts

Key Configurations

Verification Checklist

Performance Metrics

Metric Value
Build Time ~11s (first build), ~2s (incremental)
APK Size 7.04 MB
Min API 30 (Wear OS 3.0)
Target API 35
Compile SDK 35

Next Steps

  1. Module Selection (Optional)
    • Run: .\scripts\select-wear-module.ps1 to interactively choose module
    • Or manually select from dropdown in Android Studio
    • Wear OS is already the default
  2. Test Device Setup
    • Set up Wear OS emulator (Tools → Device Manager)
    • Or connect physical Wear OS device
  3. First Run
    • Wear OS [Debug] is pre-selected in dropdown
    • Just click Run button (or Shift+F10)
    • App will build and deploy
  4. Debug/Develop
    • Use Logcat for debugging
    • Hot reload: Ctrl+M
    • Layout Inspector: Tools → Layout Inspector
  5. Switch Modules (Optional)
    • Click run config dropdown
    • Select different module
    • Click Run
  6. Release
    • Use wear [Release] config or
    • Run .\scripts\builders\build-wear-release.PS1

Module Selection

See MODULE_SELECTION.md for:

Troubleshooting

“Module FastMediaSorter_mob_v2.wear.main not found”

File  Sync Now  # or Ctrl+Shift+Y

“KSP compilation failed”

.\gradlew.bat :wear:clean :wear:assembleDebug

“Wrong module selected”

# Use interactive selection
.\scripts\select-wear-module.ps1

# Or manually select from dropdown in Android Studio toolbar

### Emulator not appearing

```powershell
.\gradlew.bat --stop  # Stop Gradle daemon

Support Resources


Configuration Complete!

You’re ready to build and run the Wear OS app in Android Studio.

For quick start: See docs/WEAR_OS_QUICK_START.md
For detailed guide: See docs/WEAR_OS_SETUP.md