Flutter: 'package get' has not been run; 'Pub get' has not been run

本小妞迷上赌 提交于 2019-12-23 05:45:09

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/49056126/flutter-package-get-has-not-been-run-pub-get-has-not-been-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!