Pair Wear Emulator with Android Emulator

回眸只為那壹抹淺笑 提交于 2019-12-12 08:27:49

问题


I'm sure this is a simple question, but I seem to be spinning my wheels here. I want to connect and android wear device (emulated) with and android device (also emulated). I've tried port forwarding but that doesn't seem to do the trick for me. Does anyone have any good documentation for this?


回答1:


Genymotion + Wear Emulator

  1. Download and install genymotion image 4.3+;
  2. Download Gapps for the selected version of the image;
  3. Install gapps in genymotion and configure;
  4. Download and install Android Wear;
  5. Launch the wear emulator;
  6. Set port forward from genymotion to wear:

    adb -s {genimotion_ip}:{genimotion_port} -d forward tcp:5601 tcp:5601
    
  7. Use!



回答2:


Don't forget that if you want to pair to an Android Wear emulator, you have to tell the Android Wear connecting app to "Connect to Emulator".

I think that might be the missing step from the below comment - you have to make sure to tell the app to connect to the emulator. Then it will use the port forwarded adb stuff.



来源:https://stackoverflow.com/questions/27662933/pair-wear-emulator-with-android-emulator

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