Question: I'm using `MSVS2015Pro` with `Xamarin`.

I also installed `BlueStacks` to get an `AVD`.

But for some reason the the `BlueStacks AVD` doesn't appear on the available devices list to `debug` with.

Check the following image:

[![enter image description here](https://i.stack.imgur.com/VQlTz.png)](https://i.stack.imgur.com/VQlTz.png)

**[EDIT]**

FYI: On the `Visual Studio` Output window I get the error (I didn't see before):

```
Emulator name lookup failed for emulator 'emulator-5554'

```

[![enter image description here](https://i.stack.imgur.com/OAjUn.png)](https://i.stack.imgur.com/OAjUn.png)

Any idea on how to solve this?

Answer: 
How to connect Bluestacks (4) Android Emulator with **Visual Studio** (this case 2019):

**Step 1:**

Activate ADB-Settings in Bluestacks

[![enter image description here](https://i.stack.imgur.com/jAlGT.png)](https://i.stack.imgur.com/jAlGT.png)

**Step 2:**

In VS go to *Tools -> Android -> Android Adb Command Prompt...* and insert 

**adb connect 127.0.0.1:5555**

**Done!**

You should now see the device, which is selected in the Bluestacks Advanced-Settings as Device-Profil
[![enter image description here](https://i.stack.imgur.com/vadd1.png)](https://i.stack.imgur.com/vadd1.png)
[![enter image description here](https://i.stack.imgur.com/kk8L3.png)](https://i.stack.imgur.com/kk8L3.png)
I had a Xamarin Studio Addin that I used to use for this, but you can manually use `adb` (Android Debug Bridge) to enable/disable the connection.

Get the ip and port number of the running Bluestack instance via, it is usually `127.0.0.1:5555`

```
adb devices

```

Once you have that, you can connect and disconnect from it.

### Connect:

```
adb connect {ip:port} 

```

### Disconnect:

```
adb disconnect {ip:port}

```

Ref: [SushiHangover.BlueStacks.Addin](https://github.com/sushihangover/SushiHangover.BlueStacks.Addin)