如何手动下载 VS 2017 安装的组件? [英] How to manually download components for the VS 2017 installation?

查看:32
本文介绍了如何手动下载 VS 2017 安装的组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装 Visual Studio 2017 时,我在下载 Xamarin 的 JDKV2-Component 时遇到了错误(也许有人可以在其中编辑英文错误消息?):

While installing Visual Studio 2017 I encountered the error while downloading the JDKV2-Component for Xamarin (maybe someone could edit the English error message in?):

Paket "JavaJDKV2,version=1.8.2,chip=x86" konnte von "https://go.microsoft.com/fwlink/?linkid=863182" nicht heruntergeladen werden.此类网址https://aka.ms/VSSetupErrorReports?q=PackageId=JavaJDKV2;PackageAction=DownloadPackage;ReturnCode=0x80072ee2细节WebClient-下载 fehlgeschlagen: Timeout für Vorgang überschritten位-下载 fehlgeschlagen: Fehlerkontext: BG_ERROR_CONTEXT_REMOTE_FILE, Fehlercode: -2145844841WinInet-Download fehlgeschlagen:功能:InternetOpenUrl,HR:-2147012894,消息:未知错误 12002Betroffene 工作负载Mobile-Entwicklung mit .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.27128.1)Mobile-Entwicklung mit C++ (Microsoft.VisualStudio.Workload.NativeMobile,version=15.0.27005.2)Mobile-Entwicklung mit JavaScript (Microsoft.VisualStudio.Workload.WebCrossPlat,version=15.0.27019.1)Betroffene KomponentenAndroid SDK-Einrichtung (API-Ebene 23) (globale Installation) (Component.Android.SDK23,version=15.0.27128.1)Android SDK 设置 (API-Ebene 19 和 21) (Component.Android.SDK19,version=15.0.27128.1)Android SDK-Setup (API-Ebene 22) (Component.Android.SDK22,version=15.0.27128.1)Google Android-Emulator (API-Ebene 23) (globale Installation) (Component.Google.Android.Emulator.API23.V2,version=15.0.27128.1)Java SE 开发工具包 (8.0.1120.15) (Component.JavaJDK,version=15.0.26403.0)

Paket "JavaJDKV2,version=1.8.2,chip=x86" konnte von "https://go.microsoft.com/fwlink/?linkid=863182" nicht heruntergeladen werden. Such-URL https://aka.ms/VSSetupErrorReports?q=PackageId=JavaJDKV2;PackageAction=DownloadPackage;ReturnCode=0x80072ee2 Details WebClient-Download fehlgeschlagen: Timeout für Vorgang überschritten Bits-Download fehlgeschlagen: Fehlerkontext: BG_ERROR_CONTEXT_REMOTE_FILE, Fehlercode: -2145844841 WinInet-Download fehlgeschlagen: Function: InternetOpenUrl, HR: -2147012894, Message: Unknown error 12002 Betroffene Workloads Mobile-Entwicklung mit .NET (Microsoft.VisualStudio.Workload.NetCrossPlat,version=15.0.27128.1) Mobile-Entwicklung mit C++ (Microsoft.VisualStudio.Workload.NativeMobile,version=15.0.27005.2) Mobile-Entwicklung mit JavaScript (Microsoft.VisualStudio.Workload.WebCrossPlat,version=15.0.27019.1) Betroffene Komponenten Android SDK-Einrichtung (API-Ebene 23) (globale Installation) (Component.Android.SDK23,version=15.0.27128.1) Android SDK-Setup (API-Ebene 19 und 21) (Component.Android.SDK19,version=15.0.27128.1) Android SDK-Setup (API-Ebene 22) (Component.Android.SDK22,version=15.0.27128.1) Google Android-Emulator (API-Ebene 23) (globale Installation) (Component.Google.Android.Emulator.API23.V2,version=15.0.27128.1) Java SE Development Kit (8.0.1120.15) (Component.JavaJDK,version=15.0.26403.0)

对于 x64 版本的 JDK 也是如此.

Same for the x64-version of the JDK.

事实证明,Oracle 网站需要一个 License-Accepted-cookie 来下载文件.虽然微软似乎试图将它添加到下载例程中,但它对我不起作用,并且安装不会超出它尝试安装 JDK 的位置.

It turned out that the Oracle-Website needs a License-Accepted-cookie to download the files. While Microsoft seemingly tried to add it to the download routine it doesn't work for me and the installation won't proceed beyond the point where it tries to install the JDK.

所以我手动下载了文件.但是我必须将它们放在哪里,以便 Visual Studio 安装知道它不需要再次下载它们?

So I downloaded the files manually. But where do I have to put them so that the Visual Studio installation knows that it won't need to download them again?

推荐答案

在网上搜索了几个小时,我终于在这里找到了解决方案:https://developercommunity.visualstudio.com/content/problem/160625/packageidjavajdkv2packageactiondownloadpackageretu-5.html

While searching the web for some hours I finally found the solution here: https://developercommunity.visualstudio.com/content/problem/160625/packageidjavajdkv2packageactiondownloadpackageretu-5.html

原来你必须搜索以下文件夹:

Turns out you have to search for the following folder:

C:ProgramDataMicrosoftVisualStudioPackages

C:ProgramDataMicrosoftVisualStudioPackages

在那里,您使用错误消息/错误日志中所写的包名称创建一个子文件夹(在我的情况下为JavaJDKV2,version=1.8.2,chip=x86"),并将手动下载的 .exe 文件放在那里.

There you create a subfolder with the package name as written in the error message/error log (in my case "JavaJDKV2,version=1.8.2,chip=x86") and put the manually downloaded .exe file in there.

重新启动 VS-installer 并开始安装过程.

Restart the VS-installer and start the installation process.

这篇关于如何手动下载 VS 2017 安装的组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆