简体   繁体   English

打包Android Wear应用

[英]Packaging Android Wear Apps

Anyone know if there's available documentation for packaging wearable apps? 有人知道是否有用于包装可穿戴式应用程序的文档吗? The "Packaging Wearable Apps" link is typoed in http://developer.android.com/training/wearables/apps/creating.html http://developer.android.com/training/wearables/apps/creating.html中键入了“打包可穿戴应用程序”链接

to

http://developer.android.com/traiing/wearables/packaging.html http://developer.android.com/traiing/wearables/packaging.html

and even http://developer.android.com/training/wearables/packaging.html is a 404. 甚至http://developer.android.com/training/wearables/packaging.html都是404。

The app is written and I can install it directly to a Samsung Gear Live, so looking to get the app onto the Play Store. 该应用程序已编写,我可以直接将其安装到Samsung Gear Live,因此希望将其安装到Play商店中。

左侧导航区域中有一个Packaging Wearable Apps链接。

Also when developing (debug) and testing your release on the same wear device it might be required to hit the "sync apps" option from the wear app on your phone/tablet. 同样,在同一穿戴设备上进行开发(调试)和测试发布时,可能需要从手机/平板电脑上的穿戴应用中点击“同步应用”选项。

In my case the wear app didn't appear on the wearable until I did so. 就我而言,可穿戴应用程序直到我出现在可穿戴设备上时才出现。 The packaging itself was done with android studio and I only had to add the wearApp in dependencies and build with release config for the wear app to be included. 包装本身是由android studio完成的,我只需要在依赖关系中添加wearApp并使用release config进行构建即可包含该wear应用。

dependencies {
   compile 'com.google.android.gms:play-services:5.0.+@aar'
   compile 'com.android.support:support-v4:20.0.+''
   wearApp project(':wearable')
}

More at: https://developer.android.com/training/wearables/apps/packaging.html 有关更多信息, 访问: https : //developer.android.com/training/wearables/apps/packaging.html

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

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