Why my flutter web app does not run upon running webdev serve

喜夏-厌秋 提交于 2019-12-10 12:15:55

问题


enter image description hereI've build my flutter web app and when I run webdev serve
I've got this error message

webdev could not run for this project.
Could not find a file named "pubspec.yaml" in
"C:\Users\Karrar\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\protobuf-0.13.12".

How to fix this problem?


回答1:


It is answered here https://github.com/flutter/flutter/issues/32313

You have two options:

  1. use longer command instead: flutter packages pub global run webdev serve

or

  1. add protobuf: ^0.13.11 to your project dependencies and run pub get, this will fetch missing dependency for webdev, then you can remove protobuf from your project


来源:https://stackoverflow.com/questions/56604810/why-my-flutter-web-app-does-not-run-upon-running-webdev-serve

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