Android studio 颤振博士:无法下载dart sdk,BITS服务在windows中失败
错误显示:Android studio 颤振博士:无法下载dart sdk,BITS服务在windows中失败,android-studio,flutter,sdk,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 +
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
求求你,我需要帮助,我是新来的。我也有同样的问题 您需要访问internet并运行然后再运行
flutter doctor
从命令行或终端。它应该下载Dart SDK和一些其他工具
运行“颤振医生”后的输出:
首次运行终端:
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
然后在我的MAC上成功下载dart sdk
您必须添加发布托管URL=https://pub.flutter-io.cn &&颤振存储库库URL=https://storage.flutter-io.cn 在环境方面。
请重试。使用VPN并再次尝试运行该命令。它对我很有用。不要运行提升的命令提示符,而是作为用户命令提示符运行
你有代理人吗?请勾选:您喜欢哪种环境?用户变量还是系统变量?