[否,缺少的功能:WATCH"当我尝试具有耐磨应用程序运行我的智能手机应用程序?应用程序、我的、当我、智能手机

2023-09-08 08:53:59 作者:却没有借口

我有一个磨损的应用程序已经被打包在它的内部,类似于前两个步骤,这部分的智能手机应用程序:

I have a smartphone app with a wear app that has been packaged inside of it, similar to the first two steps of this section:

https://developer.android.com/training/wearables/应用程序/ packaging.html#工作室

我原本告诉我的智能手机并没有运行SDK大到足以支持应用程序(我的手机用奇巧,显然我需要API 20),所以现在我用我的Nexus 7与Android大号preVIEW,而这个问题已经出现:

I was originally told that my smartphone wasn't running an SDK large enough to support the app (my phone was using KitKat, apparently I needed API 20), so now I am using my Nexus 7 with Android L preview, and this problem has appeared:

我有一个的SmartWatch仿真器和平板电脑运行,无一不是利用亚行-d将TCP连接:​​5601 TCP:5601绝招,所以我不知道现在该怎么解决这个问题

I have a smartwatch emulator and tablet running, and both are connected using the adb -d forward tcp:5601 tcp:5601 trick, so I have no idea how to fix this now!

如何才能让智能手机应用程序运行,自动允许磨损应用安装到模拟器?

How can I get the smartphone app to run and automatically allow the wear app to install onto the emulator?

推荐答案

在你的项目,你有两个应用程序:

In your project you have two applications:

移动 耐磨 Mobile Wearable

移动应用程序应移动设备(手机/平板电脑)和耐磨应用程序应安装上安装 Android Wear设备

Mobile app should be installed on mobile device (phone/tablet) and Wearable app should be installed on Android Wear device.

此消息没有,缺少的功能:WATCH 意味着你要在手机上安装耐磨应用 - 你不应该这样做,你的移动设备不是手表。所以再次:刚刚推出的移动和耐磨移动应用在Android Wear 应用

This message No, missing feature: WATCH means that you're trying to install Wearable app on mobile phone - you shouldn't do that, your mobile device is not a WATCH. So once again: just launch Mobile app on mobile and Wearable app on Android Wear.

我原本告诉我的智能手机并没有运行SDK大   足以支持应用程序(我的手机用奇巧,显然我   所需的API 20),所以现在我用我的Nexus 7与Android大号preVIEW,   而这个问题已经出现:

I was originally told that my smartphone wasn't running an SDK large enough to support the app (my phone was using KitKat, apparently I needed API 20), so now I am using my Nexus 7 with Android L preview, and this problem has appeared:

只有耐磨应用程序应需要API级别20,但移动应用程序可以针对任何其他的SDK水平(如10,14等)。你并不需要为移动应用程序,不仅是因为它支持耐磨应用程序。

Only the Wearable app should require API level 20, but Mobile app can target any other SDK level (like 10, 14 etc.). You don't need to set higher SDK level for Mobile app only because it supports Wearable app.

如何才能让智能手机应用程序来运行,并自动允许   戴应用安装到模拟器?

How can I get the smartphone app to run and automatically allow the wear app to install onto the emulator?

正如你所链接的教程中介绍:

As described in the tutorial that you've linked:

如果包装得当,当用户下载应用程序的手持式的   系统会自动推可穿戴式应用程序,以配对耐磨。

小米高端市场的又一力作,小米Watch S1评测

If packaged properly, when users download the handheld app, the system automatically pushes the wearable app to the paired wearable.

但请仔细阅读注意事项,在此页面的顶部:

But please read the note at the top of this page:

注意:当你签名你的应用程序有此功能不工作   开发时调试的关键。在开发,安装与亚行的应用程序   直接安装或Android工作室的可穿戴是必需的。

Note: This feature doesn't work when you are signing your apps with a debug key when developing. While developing, installing apps with adb install or Android Studio directly to the wearable is required.

这意味着,自动安装耐磨应用程序安装后,移动应用程序(用耐磨内部应用程序打包)将与您的发布证书签名的应用程序(而不是与调试一前一后只工作 - 这是在从机器人工作室/ Eclipse的标准应用程序启动)完成

This means that automatically installing Wearable app after installing Mobile app (with Wearable app packaged inside) will only work after signing app with your publishing certificate (and not with the debug one - as is done during standard application Launch from Android Studio/Eclipse).

 
精彩推荐
图片推荐