2016-10-01 71 views
4

我在Win 10 64位操作系統上安裝了Visual Studio 2015 Community Edition。爲Visual Studio安裝Hyper-V仿真器時出錯

已經下載並嘗試安裝適用於Android的Visual Studio Emulator,但以下異常失敗。

[1450:1814][2016-10-01T21:56:43]e000: MUX: ERROR: Could not load file or assembly 'Microsoft.VisualStudio.Utilities.Internal.Net35, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

[1450:1814][2016-10-01T21:56:43]e000: MUX: Stack: at Microsoft.VisualStudio.Telemetry.TelemetrySessionInitializer.BuildInitializer(TelemetrySessionSettings telemetrySessionSettings) at Microsoft.VisualStudio.Telemetry.TelemetryService.get_DefaultSession() at Microsoft.Devdiv.Bootstrapper.UserFeedback.Metrics.AppInsightsStartSession(BundleInformation bundle) at Microsoft.Devdiv.Bootstrapper.UserFeedback.Metrics.Initialize(Boolean IsBackFromReboot, BundleInformation bundle, ICommand command, CommandLineArgumentsStore commandLine) [1450:1814][2016-10-01T21:56:43]i000: MUX: Ux Initialized [1450:1814][2016-10-01T21:56:43]i000: MUX: Aquiring mutex 'Global\vsemu' with a timeout of 0 ms [1450:1814][2016-10-01T21:56:43]i000: MUX: Mutex 'Global\vsemu' ownership: True [1450:1814][2016-10-01T21:56:43]i000: MUX: Seen existing cache mutex 'Global\vsemu CacheMutex': False [1450:1814][2016-10-01T21:56:43]i000: MUX: Aquiring mutex 'Global\vsemu CacheMutex' with a timeout of 60000 ms [1450:1814][2016-10-01T21:56:43]i000: MUX: Mutex 'Global\vsemu CacheMutex' ownership: True [1450:1EC8][2016-10-01T21:56:43]i100: Detect begin, 15 packages [1450:1814][2016-10-01T21:56:43]i000: MUX: Wait for Detect to complete [1450:1EC8][2016-10-01T21:56:43]i000: MUX: Detection Phase

+0

您的機器是否滿足Visual Studio Android Emulator的最低要求? https://msdn.microsoft.com/en-us/library/mt228280.aspx#Anchor_0 理想情況下,這是部分VS安裝的問題。嘗試還修復VS.它似乎缺少一個內部VS實用程序。 –

+0

或者你在模擬或虛擬機內部運行Windows?然後hyperV被用來運行窗口。 – Scrotos

+0

下載並看看會發生什麼:https://www.nuget.org/packages/Microsoft.VisualStudio.Utilities/ 並使用depends.exe找出缺少的東西。 – Dexion

回答

3

Simsons,你說你在「尋找來自可信和/或官方消息來源的答案。」

我讀過here,上面寫着一個答案:

First check if Hyper-V is enabled on your machine in "Turn Windows features on or off". You may also need to enable the settings for this in your BIOS (VT-x and SLAT).

Installing the Windows 10 tools separately may be faster than re-running the full installer, https://dev.windows.com/en-us/downloads/install-dev-tools-visual-studio-2015

Use the "If you've already installed Visual Studio 2015 RC" option to "Add the tools", this will offer the option to add the visual studio emulator for android during setup.

EDIT:

Further to this, it seems that it's not possible to enable Hyper-V on my iMac 27" Late 2013 on Insider Preview Build 10074 as VT-x becomes disabled every time the machine reboots after selecting to install Hyper-V from "Turn Windows features on or off". This causes the installation to rollback after the reboot, very frustrating!

EDIT:

This problem occurred after doing a machine refresh, however doing a full reset from the recovery options seems to have fixed the issue and have now successfully installed Hyper-V.

In this case I have not installed any of the Bootcamp software, I initiated the Hyper-V install as soon as the machine booted into the desktop environment.

Visual Studio Community 2015 RC is currently installing, I will report back if this is also successful

EDIT: SUCCESS!

這是一個古老的回答類似的問題。

我希望它有幫助。

Juan

+0

我使用Windows 8.1單一語言,因此無法安裝Hyper-V。這是否意味着由於此錯誤,我無法安裝Visual Studio Android模擬器? – CoolMind

1

有沒有在您的日誌或異常中的錯誤0x80070666。

像:

[2848:136C][2016-09-21T18:22:28]e000: Error 0x80070666: Process returned error: 0x666 
[2848:136C][2016-09-21T18:22:28]e000: Error 0x80070666: Failed to execute EXE package. 
[25D4:2DB4][2016-09-21T18:22:28]e000: Error 0x80070666: Failed to configure per-machine EXE package. 

如果是的話,你必須用Visual C的一個問題++可再發行2015年

刪除Visual C++可再發行2015年(兩者),修復您的VS. 嘗試再次安裝Visual Studio Android模擬器。