Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to connect Android Wear Emulator with Device

I am not able to connect Android Wear Emulator with my device.I have HTC One device which has 4.4 (KitKat OS).

I follow below link :

Setting up Android Wear

But, when I execute the line adb -d forward tcp:5601 tcp:5601 through command prompt,nothing happens.Android Wear emulator does not show device connected.

Note : I am able to launch the Android Wear Preview app successfully in my device and Notifications settings is also enabled.

Any help will be appreciated.

like image 752
Siddharth_Vyas Avatar asked Mar 20 '14 06:03

Siddharth_Vyas


People also ask

How do I connect my Android wear emulator to my phone?

On the phone, in the Wear OS app, tap the Overflow button, and then tap Pair with Emulator. Tap the Settings icon. Under Device Settings, tap Emulator. Tap Accounts and select a Google Account, and follow the steps in the wizard to sync the account with the emulator.

Why is my Android Emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

How do I add a device to my emulator?

In Android Studio go to “Tools (Menu Bar) >Android > AVD Manager. Click on the “Create Virtual Device” button. Select “Phone” or “Tablet” as Category and select the device which you want to use to make a Virtual Device. Then click on the “Next” button.

Why do apps sometimes look different in the designer than they do in the emulator?

The reason why the designs look different is that the emulator's screen configuration is different to that which is used to render the design preview.


2 Answers

@Lance Nanek basically helped me solved this problem. In case you had the similar problem, these steps might be helpful.

  1. run 'adb devices' , you should see two devices, one is your emulator, the other is your device with Android Wear Preview app installed.

  2. you might see your emulator offline, if so, kill the emulator. From avd, start it, carefully uncheck 'launch from snapshot' - this is contrast to Android Wear Get started instruction: "Start the AVD again, but select Launch from snapshot and deselect Save to snapshot."

  3. run 'adb devices' again, make sure you do see two devices online
  4. run command 'adb -d forward tcp:5601 tcp:5601'
  5. from the android wear preview app, tape connect, you should be ready to go.
like image 177
Liangjun Avatar answered Sep 24 '22 04:09

Liangjun


On the newly updated Android Wear app (Aug 2014) there is a settings button top right when asked to choose a device connected via bluetooth. Pressing this button will connect to an emulator instead.

like image 32
Morne Avatar answered Sep 25 '22 04:09

Morne