Android Wear Preview not connecting to Wear Emulator

本秂侑毒 提交于 2019-12-07 06:35:09

问题


I am trying to setup my development environment for Google Wear and have followed Google's instructions but as soon as I setup the port forwarding (adb -d forward tcp:5601 tcp:5601) I am getting an error on the device;

Connection closed, waiting before trying again

I have the emulator running on the PC and Android device is a Nexus 4, 4.4.4.


回答1:


If you've updated everything, and have the new emulator, you might need Android Wear (not Android Wear Preview). Follow these steps: http://developer.android.com/preview/google-play-services-wear.html

You may have done this recently, but now that Google Play Services 5.0, and Android Wear is out (unofficially) it's worth trying again to get the latest updates.

OR, you may just need to click that emulator button in the screenshot, to let the app know you're connecting to an emulator.




回答2:


One issue I found when attempting to do this 2 weeks ago, is that despite the documentation saying to save the image to a snapshot, the emulator will not connect when launched from a snapshot. Launch the emulator and uncheck the box for "launch from snapshot."

Once the emulator is running, run

adb devices

and ensure the watch emulator is showing and has "device" next to it. If it does, then you can run

adb -d forward tcp:5601 tcp:5601

Now try connecting the preview app.




回答3:


The trouble I was having, was that the pre-selected API level was set incorrectly. It should be set to the following values:

Using Host GPU is optional.




回答4:


Stuck with the same a while ago. It appeared that Google updated their Android Wear app - the one on the screenshot in the question is out-of-dated version. After installing new version everything worked for me (as long as I used device with android 4.3+ and adb -d forward tcp:5601 tcp:5601 command to connect to wear emulator)



来源:https://stackoverflow.com/questions/24454185/android-wear-preview-not-connecting-to-wear-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!