最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wear os - How to run Watch Face Format watchface in Android Studio emulator - Stack Overflow

programmeradmin2浏览0评论

I downloaded a sample WFF project from Google's developer docs here:

I imported it into Android Studio. When I try to create a Wear OS Watch Face run configuration, I select the Module and then the Watch Face field just says "Watch Face not found" and does not allow me to continue.

The error at the bottom of the dialog says "Error: Watch Face is not chosen."

There appears to be minimal documentation about the new Watch Face Format; most existing questions and tutorials are all for the older Jetpack APIs, which I've successfully run in an emulator before.

I downloaded a sample WFF project from Google's developer docs here: https://github.com/android/wear-os-samples/tree/main/WatchFaceFormat

I imported it into Android Studio. When I try to create a Wear OS Watch Face run configuration, I select the Module and then the Watch Face field just says "Watch Face not found" and does not allow me to continue.

The error at the bottom of the dialog says "Error: Watch Face is not chosen."

There appears to be minimal documentation about the new Watch Face Format; most existing questions and tutorials are all for the older Jetpack APIs, which I've successfully run in an emulator before.

Share Improve this question asked Jan 18 at 21:06 mt_xingmt_xing 6537 silver badges24 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

I get the same thing when I try to run from configurations.

What I do is open the "Terminal" tab at the bottom of Android Studio, and type the following:

   .\gradlew assembleDebug

   adb.exe install-multiple -r .\watchface\build\outputs\apk\debug\watchface-debug.apk

This runs the watchface on the emulator, but you cannot use Studio's debugging.

发布评论

评论列表(0)

  1. 暂无评论