简体   繁体   中英

Pair Wear Emulator with Android Emulator

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?

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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