简体   繁体   English

如何测试示例Android Wear watchface应用程序?

[英]How to test sample Android Wear watchface app?

After opening Android Wear WatchFace Sample app from Google, how do you test/install it on the emulator? 在从Google打开Android Wear WatchFace示例应用程序后,您如何在模拟器上测试/安装它? (Note: the emulator is already using the 5.0 build) (注意:模拟器已经在使用5.0版本)

When run, you got Default Activity not found error. 运行时,您发现默认活动未找到错误。

错误截图

If choose "Do not launch Activity", you will get the following warning message, after proceeding it will failed since it cannot uninstall the default app. 如果选择“不启动活动”,您将收到以下警告消息,在继续之后它将失败,因为它无法卸载默认应用程序。

警告截图

Change the Activity section option to Do not launch activity - this will cause the run button to just install your watch face. 将“活动”部分选项更改为Do not launch activity - 这将导致“运行”按钮仅安装您的监视面。 You can then proceed to manually select the watch face on the emulator (if needed - if you've already selected it the changes will appear immediately). 然后,您可以继续在模拟器上手动选择表面(如果需要 - 如果您已选择它,则会立即显示更改)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM