wear-os-samples icon indicating copy to clipboard operation
wear-os-samples copied to clipboard

Watch Face not found

Open induna-crewneck opened this issue 1 year ago • 3 comments

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"

induna-crewneck avatar Jan 16 '25 07:01 induna-crewneck