当尝试查找VirtualBox时,Xamarin Android Player出现错误。

10

我有一个干净的 Windows 10 安装。在安装了 Visual Studio 2015 和 Xamarin 商业版之后,我安装了 Xamarin Android Player x64 ,现在我收到以下错误:

Error when attempting to find VirtualBox please check it's installed and try again.
Xamarin Android Player will now exit.

Xamarin论坛中提到了解决方案:

将"C:\Program Files\Oracle\VirtualBox"添加到%PATH%,问题得以解决。

我能够顺利打开VirtualBox 4.3.28 r100309版本。

如何实现此解决方案,或者是否有更新的解决方案?


对我来说,我不得不重新启动我的电脑。我安装了版本5.04,但是出现了相同的错误。但是重新启动解决了这个问题。 - Justin XL
5个回答

17

我正在运行Windows 10专业版并进行了清洁安装。有同样的问题。我打开了环境变量,发现"VBOX_MSI_INSTALL_PATH"已经设置为:

C:\Program Files\Oracle\VirtualBox\

我把它改成了

C:\Program Files\Oracle\VirtualBox

它对我起作用了...(注意最后面的反斜杠)

感谢.. 在Facebook上的Ragnar Kofi Billy Force


1
我还更改了系统环境变量并删除了{},这对我有用。谢谢... - Optimus

2
将VirtualBox添加到系统环境变量PATH中。

2
尝试安装最新版本的Virtual Box,因为v5.0修复了Windows 10的问题。下载链接为:http://download.virtualbox.org/virtualbox/5.0.4/VirtualBox-5.0.4-102546-Win.exe 更新日志请参见:https://www.virtualbox.org/wiki/Changelog
Windows hosts: fixed crash when opening Windows dialogs from the VM process on Windows 10 (bug #14351).
Windows hosts: fixed host-only adapter creation issues on Windows 10 (bug #14040)
Windows hosts: fixed audio on Windows 10 (bug #14432).
Windows Additions: fixed a potential crash in the WDDM driver with Windows 10 (bug #14190).
VRDP: allow Windows 10 RDP clients (bug #14216).
Windows hosts: fix for Windows 10 build 10525 and later (bug #14502).
Windows hosts: fixed network adapter enumeration on Windows 10 (bug #14437).
VMM: fixed an issue with Windows 10 guest kernel debugging over the network for Hyper-V paravirtualized VMs.

我也有同样的问题,安装最新版本已经解决了它。

0

以管理员身份运行(在桌面快捷方式上右键单击)


0

其他答案都没有帮到我。Android Player安装程序强制安装了Virtual Box 5.0.4,但在Windows 10 Home(版本14393.51)上无法正常工作。

对我有用的是在安装Android Player后安装最新的虚拟机(版本5.1.2 r108956)。虽然我无法从Virtual Box的管理器启动Android设备,但我可以从Android Player或Visual Studio中启动它们而没有任何问题。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接