Xamarin,Windows 10 Parallels 并连接到基于 MAC 的 Android 模拟器

Xamarin, Windows 10 Parallels and connecting to a MAC based Android Emulator

我正在尝试让我的 Parallels Visual Studio 安装与我 MAC 上的 Android Studio 仿真器通信(无论出于何种原因我都在努力启动 windows 诸如 Android Player / Microsoft Android Emulator 之类的,因为他们要求 Hyper-V 或其他任何东西)。

另外,让它连接到我的 MAC 减少了在每个 VM 实例上安装模拟器的需要。

我已按照本指南中的步骤进行操作 -

https://taco.visualstudio.com/en-us/docs/run-android-emulator-on-osx-using-parallels/

并且在我 运行 putty SSH 脚本连接到 MAC 之后,遗憾的是我看不到任何使用

的模拟器
adb devices

但是,如果我在脚本连接后从 windows 命令提示符 运行 -

adb connect localhost:5555 

然后我通过

看到
adb devices 

List of devices attached
emulator-5554 offline

所以它是“某种”连接,但设备正在注册为离线状态,我似乎无法做任何事情让它在线,以便它最终可以显示在 Xamarin Visual Studio 设备列表中。

有没有人有这方面的经验可以帮忙?这对 Xamarin Visual Studio 可行吗?

注释

我已经尝试在两台机器上使用 kill-server / start-server 来移除离线

感谢 "bitibi" -

https://forums.xamarin.com/discussion/comment/249573#Comment_249573

在尝试解决此问题时,我总是在工作日打开 Xamarin Studio,它基本上阻塞了端口,关闭 Xamarin Studio 和 re-tried 进程后,一切都开始工作了!!

谢谢 WickedW,很高兴帮到了您!

所以解决方案是:

I had the same problem and I found that if Xamarin studio is running on Mac, it will block ports 5554 and 5555. Close it, run in Parallels Windows adb kill-server (Visual Studio will restart it) and restart the SSH connection.