Skip to content

Watch Face not found #1243

@induna-crewneck

Description

@induna-crewneck

I'm still learning the ropes with Android Studio, I hope this isn't a totally stupid question.

I downloaded the code to look at and play around with the Watch Face Format samples. I loaded them up in Android Studio and it built fine, but I can't add a Wear OS Watch Face configuration. When I select SimpleDigital.watchface as module, it says "Watch Face not found"

How / Where do I specify an .xml or .kt to act as a watch face?

In another project I started from scratch, I have this in my manifest:

<service
android:name=".watchface.test"
android:exported="true"
android:label="@string/watchface_label"
android:permission="com.google.android.wearable.permission.BIND_TILE_PROVIDER" >
<intent-filter>
<action android:name="androidx.wear.watchface.action.BIND_WATCH_FACE" />
</intent-filter>
<meta-data
android:name="android.support.wearable.watchface."
android:value="SHORT_TEXT" />
<meta-data
android:name="androidx.wear.watchface.format.version"
android:resource="@drawable/watchface_preview" />
<meta-data
android:name="android.support.wearable.watchface.UPDATE_PERIOD_SECONDS" android:value="1" /> `

but same issue with "Watch Face not found"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions