本文介绍了无法从 vs 2015 安装程序安装 xamarin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 vs 2015 upgrade 1 并且我尝试从设置中安装 Xamrin,但是当我尝试安装它时,最后收到此错误消息:

I have vs 2015 upgrade 1 installed and I try to install Xamrin from the setup, but when I try to install it, at the end receive this error message:

C#/.Net Xamarin安装程序在安装此包时遇到意外错误.这可能表明包装有问题.错误代码为 2711.

C#/.Net XamarinThe installer has encountered an unexpected error installing this package. This may indicate a problem with package. The error code is 2711.

我该如何解决这个问题?

how can I solve this?

推荐答案

我遇到了同样的错误.该错误是由于缓存中的旧 Xamarin 安装程序文件造成的.

I had the same error. The error is due to old Xamarin installer files in the cache.

C#/.Net Xamarin 安装程序在安装此包时遇到意外错误.这可能表明包装有问题.错误代码是 2711.

我执行了以下步骤来修复它:

I did the following steps to fix it:

注意:一个文件夹可能被隐藏,所以在 Windows 资源管理器中启用显示隐藏的项目.

Note: a folder could be hidden, so enable show hidden items in the windows explorer.

  1. 删除任何与 Xamarin 相关的文件夹C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers"文件夹.

例如:

C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVS

C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVS

C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVSV1

C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVSV1

  1. 如果第一步没有帮助,请尝试执行以下操作.

从 Windows 临时文件夹 TMP 和 TEMP 中删除所有与 Xamarin 相关的文件夹或文件.

Delete all Xamarin related folders or files from windows temprorary folders TMP and TEMP.

您可以在 Windows/控制面板/系统/高级/环境变量中找到临时文件夹

You could find the temprorary folders in the Windows/Control Panel/ System/Advanced/Enviroment variables

我在此处的评论部分找到了该解决方案:https://blogs.msdn.microsoft.com/visualstudio/2016/03/31/mobile-app-development-made-easy-with-visual-studio-and-xamarin/#comment-142062

I found that solution in comments section here:https://blogs.msdn.microsoft.com/visualstudio/2016/03/31/mobile-app-development-made-easy-with-visual-studio-and-xamarin/#comment-142062

这篇关于无法从 vs 2015 安装程序安装 xamarin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 17:22