简体   繁体   English

无法在 flutter 中获取 percent_indicator 依赖项

[英]Unable to get percent_indicator dependency in flutter

I'm trying to use percent_indicator in my flutter project.我正在尝试在我的 flutter 项目中使用 percent_indicator。 When I give flutter pub get the following error I'm getting.当我给flutter pub get时,我得到以下错误。 This occurs only for this dependency.这只发生在此依赖项中。 I tried the solution mentioned in the following link我尝试了以下链接中提到的解决方案

https://github.com/flutter/flutter/issues/46641#issuecomment-631359661 https://github.com/flutter/flutter/issues/46641#issuecomment-631359661

https://stackoverflow.com/a/65785014/9455775 https://stackoverflow.com/a/65785014/9455775

Error I'm getting Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(../../third_party/boringssl/src/ssl/handshake.cc:354))错误我在客户端收到握手错误(操作系统错误:CERTIFICATE_VERIFY_FAILED:无法获取本地颁发者证书(../../third_party/boringssl/src/ssl/handshake.cc:354))

pub upgrade failed (server unavailable) -- attempting retry 1 in 1 second... pub 升级失败(服务器不可用)- 尝试在 1 秒内重试 1...

Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(../../third_party/boringssl/src/ssl/handshake.cc:354))客户端握手错误(操作系统错误:CERTIFICATE_VERIFY_FAILED:无法获取本地颁发者证书(../../third_party/boringssl/src/ssl/handshake.cc:354))

pub upgrade failed (server unavailable) -- attempting retry 2 in 2 seconds... pub 升级失败(服务器不可用)- 尝试在 2 秒内重试 2...

. . . . . . . . (Goes on ) But still no use.. Please let me know what went wrong here. (继续)但仍然没有用..请让我知道这里出了什么问题。

1- try to disable your antivirus | 1-尝试禁用您的防病毒软件| firewall防火墙

2- try to use vpn 2-尝试使用vpn

3- run your cmd promt with anadministrator privileges and try again 3-以管理员权限运行您的 cmd 提示,然后重试

restart your IDE before trying again在重试之前重新启动您的 IDE

Created new project and added the dependency.创建新项目并添加依赖项。 It worked for me它对我有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM