Vs 2017安装程序因“使用.Net进行移动开发”而失败

时间:2018-05-31 18:16:41

标签: android-sdk-tools

======================================
: Windows 10 x64, Vs 2017 Pro 15.7.2 :
======================================

我在运行“以管理员身份”运行时使用Vs 2017 Pro安装“带有.Net”的移动开发组件时出现错误(如下)。

我试过了:

  1. 删除并重新添加组件
  2. 修复Vs 2017
  3. 自行安装HAXM(安装正常)
  4. 卸载并重新安装Vs 2017
  5. 将问题报告给microsoft
  6. 任何人都知道如何解决?

    ===============
    : Install Log :
    ===============
    
    Something went wrong with the install.
    
    You can troubleshoot the package failures by:
    
        1. Search for solutions using the search URL below for each package failure
        2. Modify your selections for the affected workloads or components and then retry the installation
        3. Remove the product from your machine and then install again
    
    If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.
    
    ================================================================================
    
    Package 'AndroidTools_Xamarin,version=26.1.1.3' failed to install.
        Search URL
            https://aka.ms/VSSetupErrorReports?q=PackageId=AndroidTools_Xamarin;PackageAction=Install;ReturnCode=5
        Details
            Command executed: "c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe" -NoLogo -NoProfile -Noninteractive -ExecutionPolicy Unrestricted -InputFormat None -Command "& """C:\ProgramData\Microsoft\VisualStudio\Packages\AndroidTools_Xamarin,version=26.1.1.3\AndroidSDKPrivateInstall.ps1""" -Package tools -FileName sdk-tools-windows-4333796.zip -Version 26.1.1 -AndroidHome """C:\Program Files (x86)\Android\android-sdk""" -RequestedAVDs """""" -Operation Install; exit $LastExitCode"
            Return code: 5
            Return code details: Access is denied.
        Log
            C:\Users\bminder\AppData\Local\Temp\dd_setup_20180530193011_361_AndroidTools_Xamarin.log
        Impacted workloads
            Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.7.27625.0)
        Impacted components
            Android SDK setup (API level 27) (Component.Android.SDK27,version=15.7.27625.0)
            Google Android Emulator (API Level 27) (Component.Google.Android.Emulator.API27,version=15.7.27625.0)
    
    --------------------------------------------------------------------------------
    
    Package 'AndroidHaxm_Xamarin,version=6.2.0.4' failed to install.
        Search URL
            https://aka.ms/VSSetupErrorReports?q=PackageId=AndroidHaxm_Xamarin;PackageAction=Install;ReturnCode=5
        Details
            Command executed: "c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe" -NoLogo -NoProfile -Noninteractive -ExecutionPolicy Unrestricted -InputFormat None -Command "& """C:\ProgramData\Microsoft\VisualStudio\Packages\AndroidHaxm_Xamarin,version=6.2.0.4\AndroidSDKPrivateInstall.ps1""" -Package extra-intel-Hardware_Accelerated_Execution_Manager -FileName haxm-windows_r6_2_0.zip -Version 6.2.0 -AndroidHome """C:\Program Files (x86)\Android\android-sdk""" -RequestedAVDs """""" -Operation Install; exit $LastExitCode"
            Return code: 5
            Return code details: Access is denied.
        Log
            C:\Users\bminder\AppData\Local\Temp\dd_setup_20180530193011_362_AndroidHaxm_Xamarin.log
        Impacted workloads
            Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.7.27625.0)
        Impacted components
            Google Android Emulator (API Level 27) (Component.Google.Android.Emulator.API27,version=15.7.27625.0)
            Intel Hardware Accelerated Execution Manager (HAXM) (global install) (Component.HAXM,version=15.6.27413.0)
    

1 个答案:

答案 0 :(得分:0)

原来是我们的企业Cylance阻止了脚本。我不得不提出允许它的请求 - 只丢失了2天。