Flutter如何手动安装软件包

编程入门 行业动态 更新时间:2024-10-17 07:37:10
本文介绍了Flutter如何手动安装软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否无法手动下载并安装软件包?使用他们的包管理器感到非常沮丧,这次它在0.4秒内下载,但每次尝试等待几分钟后,下一次都无法下载.太不可靠了.

Is there no way to manually download a package and install it? It's so frustrating using their package manager which this time downloads in 0.4 seconds but the next cannot download ever after multiple tries waiting several minutes each time. It's just so unreliable.

至少可以看到进度条或其他内容吗?下载时遇到很多麻烦似乎很荒谬,我可以在2秒钟之内在浏览器中下载,并且每次都会成功.

Is there at least a way I can see a progress bar on it or something? It just seems ridiculous to have so much trouble downloading something that I could download in 2 seconds in my browser and it would be successful every single time.

我浪费了半天时间只是试图下载一个软件包,因此我可以继续我的项目.只是rflutter_alert ...我的意思是它到底有多大?

I've wasted half the day just trying to download a package so I can continue with my project because of this. It's just rflutter_alert...I mean how big can it really be?

推荐答案

要从其他答案扩展,完整的过程是从github和Mac上下载软件包,并将其放置在文件夹users/*username*/Developer/flutter/.pub-cache/hosted/pub.dartlang/中.对于Windows,我不知道这些软件包的位置.

To extend from the other answer, the complete procedure is to download the packages from github and on Mac, to place them in the folder users/*username*/Developer/flutter/.pub-cache/hosted/pub.dartlang/. For windows I'm unaware of the location of these packages.

您还需要将名称从rflutter_alert-master更改为rflutter_alert-1.0.3,并在其中添加正确的版本号.

You will also need to change the name from rflutter_alert-master to rflutter_alert-1.0.3 and add the correct version number in.

如果从那里运行flutter pub get,它将成功完成,因为没有要下载的内容.

From there if you run flutter pub get it will successfully complete no problem because there is nothing to download.

更多推荐

Flutter如何手动安装软件包

本文发布于:2023-06-11 03:52:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/626185.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:软件包   Flutter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!