Xamarin - 无法启动SDK或AVD

时间:2017-05-30 15:36:04

标签: android visual-studio xamarin sdk visual-studio-2017

所以我刚安装了Visual Studio 2017社区版,并添加了Xamarin。安装结束后,会创建一个错误日志,其中说明SDK和Emulator组件未正确下载。所以我重新加载了同样的事情。然后我尝试修改和修复,再没有任何帮助 - 仍然是同样的问题。

现在,当我在不注意错误的情况下启动VS时,我无法访问SDK和AVD。我点击图标,没有任何反应。我检查了SDK的路径(看起来不错,但我猜错误日志说 - SDK可能没有正确安装)。

我在公司环境中,不允许从Android网站下载SDK。

我基本上是想向大家伸出援助之手。所有提示和答案都表示赞赏。

干杯!

错误日志:

The product failed to install the listed workloads and components due to one or more package failures.

Incomplete workloads
    Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26403.0)

Incomplete components
    Android NDK (R13B) (Component.Android.NDK.R13B,version=13.1.6)
    Android SDK setup (API level 23) (Component.Android.SDK23,version=15.0.26208.0)
    Google Android Emulator (API Level 23) (Component.Google.Android.Emulator.API23.V2,version=15.0.26208.0)
    Intel Hardware Accelerated Execution Manager (HAXM) (Component.HAXM,version=15.0.26208.0)

You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.

Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.

    Package 'AndroidSDKV2,version=24.4.1.9' failed to download from 'https://go.microsoft.com/fwlink/?linkid=824150'.
        Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=AndroidSDKV2;PackageAction=DownloadPackage;ReturnCode=0x80131509
        Impacted workloads
            Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26403.0)
        Impacted components
            Android SDK setup (API level 23) (Component.Android.SDK23,version=15.0.26208.0)
            Google Android Emulator (API Level 23) (Component.Google.Android.Emulator.API23.V2,version=15.0.26208.0)
            Intel Hardware Accelerated Execution Manager (HAXM) (Component.HAXM,version=15.0.26208.0)
        Details
            WebClient download failed: The remote server returned an error: (407) Proxy Authentication Required.
            Bits download failed: Error context: BG_ERROR_CONTEXT_REMOTE_FILE, Error code: -2145844841
            WinInet download failed: Url 'http://dl.google.com/android/installer_r24.4.1-windows.exe' returned HTTP status code: 403

    Package 'AndroidNDK_R13B,version=13.1.5,chip=x64' failed to download from 'https://go.microsoft.com/fwlink/?linkid=833504'.
        Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=AndroidNDK_R13B;PackageAction=DownloadPackage;ReturnCode=0x80131509
        Impacted workloads
            Mobile development with .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.26403.0)
        Impacted components
            Android NDK (R13B) (Component.Android.NDK.R13B,version=13.1.6)
        Details
            WebClient download failed: The remote server returned an error: (407) Proxy Authentication Required.
            Bits download failed: Error context: BG_ERROR_CONTEXT_REMOTE_FILE, Error code: -2145844841
            WinInet download failed: Url 'http://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip' returned HTTP status code: 403

1 个答案:

答案 0 :(得分:0)

如果您使用的是Windows 10,请检查是否安装了Hyper-V和Hyper-V工具。 在开始菜单上打开RUN命令,或使用Windows + R - 键入" appwiz.cpl" - 点击"打开或关闭Windows功能"并检查是否选择并安装了Hyper-V。

如果没有,请选择它并重启机器,这样可以解决您的xamarin问题。

如果,这不解决,这可能是一个防火墙问题,这可能会阻止下载xamarin工具。