如何解决颤振网络的发布升级失败(1)?

时间:2019-06-05 13:34:25

标签: flutter dart flutter-web

我正在为网络设置flutter,但flutter pub升级失败。

这是错误Could not find a file named "packages/flutter_web/pubspec.yaml" in https://github.com/flutter/flutter_web 7a4c33425ddd78c54aba07d86f3f9a4a0051769b.,我该如何解决这个问题。此错误使我无法运行Web应用程序。包括的是我的pubspec.yaml文件,希望对您有所帮助。预先谢谢你。

我的Pubspec.yaml文件

description: An app built using Flutter for web

environment:
  # You must be using Flutter >=1.5.0 or Dart >=2.3.0
  sdk: '>=2.3.0-dev.0.1 <3.0.0'

dependencies:
  flutter_web: any
  flutter_web_ui: any

dev_dependencies:
  build_runner: ^1.4.0
  build_web_compilers: ^2.0.0
  pedantic: ^1.0.0

dependency_overrides:
  flutter_web:
    git:
      url: https://github.com/flutter/flutter_web
      path: packages/flutter_web
  flutter_web_ui:
    git:
      url: https://github.com/flutter/flutter_web
      path: packages/flutter_web_ui```


1 个答案:

答案 0 :(得分:0)

经过一整天的游戏。只要确保所有内容都已更新为最新版本即可。进入git缓存目录并清理它... C:\Users\USERNAME\AppData\Roaming\Pub\Cache\git\cache我希望这可以帮助某人不要像我一样浪费一整天...