最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

dart - Got TLS error trying to find package. TLS Error When Running flutter doctor or pub upgrade - Stack Overflow

programmeradmin4浏览0评论

I recently updated Flutter to version 3.29.2, and since then, I have been experiencing issues when running flutter doctor or pub upgrade. The error message I receive is:

flutter doctor
Building flutter tool.
Running pub upgrade - -.
Resolving dependencies ..
Got TLS error trying to find package crypto at .
Error <69>: Unable to
Ratseconds ... (9 tries left>

flutter tool. Retrying in five

Waiting for 0 seconds, press CTRL+C to quit
Running pub upgrade.
Resolving dependencies ... (41.6s>_

I have tried the following solutions, but the issue persists:

Checked my internet connection and ensured is accessible from my browser.

Used a VPN to bypass possible network restrictions.

Ran flutter upgrade --force, but the error remains.

Deleted the bin/cache folder inside the Flutter directory and retried flutter doctor.

Unset any proxy settings using flutter config --unset http-proxy and flutter config --unset https-proxy.

Ran dart pub upgrade separately before running flutter doctor.

Executed all commands with administrator privileges.

The issue only started occurring after updating to Flutter 3.29.2 Previous versions worked fine.

System Info: OS: Windows 10 (64-bit)

Flutter version: 3.29.2

Dart version: (from flutter --version)

Network: No proxy, direct internet access

Has anyone else encountered this issue with Flutter 3.29.2? Any solutions or workarounds would be greatly appreciated!

I recently updated Flutter to version 3.29.2, and since then, I have been experiencing issues when running flutter doctor or pub upgrade. The error message I receive is:

flutter doctor
Building flutter tool.
Running pub upgrade - -.
Resolving dependencies ..
Got TLS error trying to find package crypto at https://pub.dev.
Error <69>: Unable to
Ratseconds ... (9 tries left>

flutter tool. Retrying in five

Waiting for 0 seconds, press CTRL+C to quit
Running pub upgrade.
Resolving dependencies ... (41.6s>_

I have tried the following solutions, but the issue persists:

Checked my internet connection and ensured https://pub.dev is accessible from my browser.

Used a VPN to bypass possible network restrictions.

Ran flutter upgrade --force, but the error remains.

Deleted the bin/cache folder inside the Flutter directory and retried flutter doctor.

Unset any proxy settings using flutter config --unset http-proxy and flutter config --unset https-proxy.

Ran dart pub upgrade separately before running flutter doctor.

Executed all commands with administrator privileges.

The issue only started occurring after updating to Flutter 3.29.2 Previous versions worked fine.

System Info: OS: Windows 10 (64-bit)

Flutter version: 3.29.2

Dart version: (from flutter --version)

Network: No proxy, direct internet access

Has anyone else encountered this issue with Flutter 3.29.2? Any solutions or workarounds would be greatly appreciated!

Share Improve this question edited Mar 24 at 2:42 Mustafa Alqershi asked Mar 22 at 3:31 Mustafa AlqershiMustafa Alqershi 517 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Solution:

✅ 1: Open Command Prompt (CMD) as administrator.
✅ 2: Execute the following command to force the connection over TLS 1.2:

curl --tlsv1.2 https://pub.flutter-io.cn

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论