Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to install xamarin from vs 2015 setup

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 The 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?

like image 335
Luca Morelli Avatar asked Mar 04 '16 20:03

Luca Morelli


People also ask

Does Visual Studio 2015 support Xamarin?

This combination of Xamarin and Visual Studio 2015 is our most integrated release ever – featuring a Visual Studio 2015 installation process that allows you to choose to install Xamarin with a single click, giving you everything you need to start building native cross-platform apps, all in C#.

How do I install Xamarin on already installed Visual Studio 2017?

Adding Xamarin to Visual Studio 2017 If Visual Studio 2017 is already installed, add Xamarin by re-running the Visual Studio 2017 installer to modify workloads (see Modify Visual Studio for details). Next, follow the steps listed above to install Xamarin.


2 Answers

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

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

I did the following steps to fix it:

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

  1. Delete any Xamarin related folders from "C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers" folder.

For example:

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

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

  1. If the first step doesn't help then try to do the following below.

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

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

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

like image 133
Maks Avatar answered Nov 09 '22 13:11

Maks


You can try a manual install by downloading and installing the following:

http://download.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_4.0.1.147.msi

like image 28
BytesGuy Avatar answered Nov 09 '22 13:11

BytesGuy