简体   繁体   English

如何在Eclipse中调试Android Wear应用程序?

[英]How to Debug Android Wear Application in Eclipse?

I am trying to develop android wear application with handled app. 我正在尝试使用已处理的应用程序开发android wear应用程序。 My Android wear device (Samsung Gear Live) was not detected by ADB. 亚行未检测到我的Android穿戴设备(Samsung Gear Live)。 So , I am signing the wear app and adding it to handled app and signing handled app separately. 因此,我要对Wear应用进行签名,并将其添加到处理的应用中,然后分别对处理的应用进行签名。 Now How to get crash logs from the wear app? 现在如何从Wear应用获取崩溃日志?

Any body can help on this issue? 任何机构都可以在这个问题上提供帮助吗?

You need to enable developer options and adb debugging on you Wear device to be able to use adb. 您需要在Wear设备上启用开发人员选项和adb调试才能使用adb。

  1. Open the Settings app and scroll to the bottom. 打开设置应用程序,然后滚动到底部。

  2. If it doesn't have a Developer Options setting, tap About Phone (or About Tablet), scroll to the bottom, and tap the build number 7 times. 如果没有开发人员选项设置,请点击关于手机(或关于平板电脑),滚动到底部,然后点击内部版本号7次。

  3. Go back and tap Developer Options. 返回并点击开发人员选项。

  4. Enable USB debugging. 启用USB调试。

When that is done you can either connect your watch with a usb cable, just like you connect your phone or enable bluetooth debugging like described here: https://developer.android.com/training/wearables/apps/bt-debugging.html 完成后,您可以使用USB电缆将手表连接起来,就像连接手机一样,或按如下所述启用蓝牙调试: https : //developer.android.com/training/wearables/apps/bt-debugging.html

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

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