Search code examples
androidwear-osandroid-wear-2.0

How to run Android Wear app on Watch from Android Studio?


From Android Studio, I'm trying to launch an app on an LGE G Watch F5CC (Android 6.0.1, Android Wear 1.5.0)

I can see the watch in Android Studio's "Select Deployment Target" window, but the device is greyed out, with the message

missing uses-feature watch, non-watch apks cannot be launched on a watch

NOTE: The app is not a standalone app for watch. It's supposed to run as a companion to the main app.

In the wear app's AndroidManifest.xml, I've the following statement:

<uses-feature
    android:name="android.hardware.type.watch"
    android:required="false" />

Solution

  • The problem was that my wear module was not included in the project's settings.gradle file.

    Adding the wear module to this file solved the problem:

    include ':...', ':wear'