更新/.pub-cache中的flutter依赖性 [英] Update flutter dependencies in /.pub-cache

查看:2866
本文介绍了更新/.pub-cache中的flutter依赖性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我删除了文件夹.pub-cache/hosted/pub.dartlang.org/this_plugin

更新pubsec.yaml内部依赖关系的命令是什么?我相信这是

What is the command to update the dependencies inside pubsec.yaml? I believe it is

flutter软件包获得

flutter packages get

.pub-cache下的文件夹仍不是最新的.

The folder under .pub-cache is still not up to date.

注意:我删除了一个pubspec.lock

推荐答案

pubspec.yaml中的dependencies删除程序包,运行flutter packages get.然后将该软件包再次添加到dependencies并运行flutter packages get.此过程过去已经为我解决了这个问题.

Remove the package from dependencies in pubspec.yaml, run flutter packages get. And then add the package to dependencies again and running flutter packages get.This process has solved the problem for me in the past.

这篇关于更新/.pub-cache中的flutter依赖性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆