环境
请注意,我在hyper-v服务器中运行hyper-v(Windows 10上的模拟器),但我的构建支持这种功能。
问题描述
我可以创建并启动虚拟机,但是在3秒后这个屏幕,机器会自行重置。我通过暂停虚拟机来获取屏幕截图:
当我查看Visual Studio Emulator for Android manager
的日志时,这就是我所看到的:
3> 4-12-2015 21:58:18 : [Critical] Could not launch 'VS Emulator 5" Lollipop (5.0) XXHDPI Phone' device. Exit code -532462766.
3> 4-12-2015 21:58:18 : [Critical] XDE Path: C:\Program Files (x86)\Microsoft XDE\10.0.10240.0\xde.exe
3> 4-12-2015 21:58:18 : [Critical] XDE Arguments: /sku Android /displayName "VS Emulator 5\" Lollipop (5.0) XXHDPI Phone" /memSize 2048 /diagonalSize 5 /video "1080x1920" /vhd "C:\Users\Geert\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\vhd\5_Lollipop_(5.0)_XXHDPI_Phone\image.vhd" /name "VS Emulator 5-inch Lollipop (5.0) XXHDPI Phone.geert"
3> 4-12-2015 21:58:18 : [Critical] XDE Exit Code: Unknown (-532462766)
当我查看event log
时,我看到了:
Application: xde.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
at System.Net.Sockets.Socket.Bind(System.Net.EndPoint)
at Microsoft.Xde.Communication.XdePeerGuest.DetectGuest()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
我尝试修复它(但失败了)
答案 0 :(得分:0)
我认为你在这方面的工作有点太过分了。用于Android的VS模拟器还没有在嵌套的Hyper-V中进行测试,因为嵌套的Hyper-V仍处于开发阶段。不幸的是,我不认为这会在嵌套的Hyper-V更接近RTM之前得到修复。