android-studio - Flutter doctor : Unable to download dart sdk, BITS 服务在 Windows 中失败

标签 android-studio flutter sdk

错误显示:

Downloading the Dart SDK using the BITS service failed, retrying with WebRequest...
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At C:\src\flutter\bin\internal\update_dart_sdk.ps1:68 char:5
+     Invoke-WebRequest -Uri $dartSdkUrl -OutFile $dartSdkZip
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

拜托,我需要帮助,我是 Flutter 的新手。

最佳答案

使用 VPN 并尝试再次运行该命令。它对我有用。

关于android-studio - Flutter doctor : Unable to download dart sdk, BITS 服务在 Windows 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59575309/

相关文章:

android - 在Android Studio中,为什么Gradle控制台的输出总是为空?

android - Android Studio 中的错误检测

firebase - flutterfire 尚未配置任何应用程序。检索线程信息时出错 : (ipc/send) invalid destination port

java - Intellij 没有显示任何语法错误/没有给出任何建议

android - 为 native 应用程序 Google Analytics 跟踪包含内部版本号的最佳方法是什么?

android - 找不到 com.android.tools.build :gradle:4. 0.1(或任何版本)

android - Flutter:在应用程序关闭或在后台时运行 native Android 代码

ios - dyld : Library not loaded: @rpath/App. 框架/应用程序

ios - iPhone音频相移

java - 在 Android Studio 的 TextView 中设置文本时出现问题