Flutter:'package get' 尚未运行;'Pub get' 尚未运行 [英] Flutter: 'package get' has not been run; 'Pub get' has not been run

查看:40
本文介绍了Flutter:'package get' 尚未运行;'Pub get' 尚未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 git 下载了

解决方案

Dart 类似于 node.它有一个 pubspec.yaml,相当于 package.json 包含你的依赖和东西.

并且您需要使用 pub get 下载这些依赖项.或者在flutter的情况下,使用flutter包获取.

此警告只是提醒您未下载依赖项

=>点击第一个警告的Get Dependencies

I dowloaded a Flutter sample code for Catalog from git, which showing me a warning,

'package get' has not been run
'Pub get' has not been run

What does it mean? How to solve it? Should I ignore this warnings or Update dependencies as suggested with links in warning?

解决方案

Dart is similar to node. It has a pubspec.yaml which is the equivalent of package.json containing your dependencies and stuff.

And you need to download these dependencies, using pub get. Or on the case of flutter, using flutter packages get.

This warning is just here to reminds you that your dependencies aren't downloaded

=> Click on Get Dependencies of the first warning

这篇关于Flutter:'package get' 尚未运行;'Pub get' 尚未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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