简体   繁体   中英

Can't install Xamarin in Visual Studio 2017

I just installed Visual Studio 2017 in my Windows 10 ENTERPRISE with an offline installer, but I have a problem with one workload: Xamarin When I launch the visual studio installer and it arrives to the xamarin installation, I get this error:

Package 'Microsoft.VisualStudio.Xamarin.Preparation,version=15.0.26621.2' failed to install.
Search URL
    https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Xamarin.Preparation;PackageAction=Install;ReturnCode=1
Details
    Command executed: "c:\windows\syswow64\\cmd.exe" /C DEL /F /S /Q """C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Xamarin"""
    Return code: 1
    Return code details: Incorrect function.
Log
    C:\Users\santiaj_Adm\AppData\Local\Temp\dd_setup_20170825092313_007_Microsoft.VisualStudio.Xamarin.Preparation.log
Impacted workloads
    Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26606.0)
Impacted components
    Xamarin (Component.Xamarin,version=15.0.26711.1)
    Xamarin Workbooks (Component.Xamarin.Inspector,version=15.0.26606.0)

Any ideas about what can be wrong? Thank you

I found your error here, a guy found a workaround you might want try that: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/dc0358cc-7554-4af3-9664-f892392d157e/package-microsoftvisualstudioxamarinpreparationversion150262280-failed-to-install?forum=vssetup

The workaround:

I got the same issue, here is workaround Create the folder C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\Extensions\\Xamarin Copy any files to C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\Extensions\\Xamarin Run the setup again. The root cause is that there is a command trying to delete some files under xamarin folder and it failed if there is no file in there.

If that doesn't work perhaps try this:

Hi jenkstom, If the above didn't help, how about trying with directly download and install the Xamarin packages from: https://www.xamarin.com/download-it?_bt=101035044668&_bk=xamarin&_bm=e&gclid=Cj0KEQjwioHIBRCes6nP56Ti1IsBEiQAxxb5G2bCyosDgH-pB7hqJLAWdxB1dVFoZj_bufKCnO6AkKYaAtt88P8HAQ Please temporarily disable the AV software and firewall during the installation. As far as I know, you computer configuration meets the Xamarin install system requirements. Best Regards,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM