如何解决 flutter web 的 pub upgrade failed (1)?
how to solve pub upgrade failed (1) for flutter web?
我正在为 web 设置 flutter,但 flutter pub 升级失败。
这是错误 Could not find a file named "packages/flutter_web/pubspec.yaml" in https://github.com/flutter/flutter_web 7a4c33425ddd78c54aba07d86f3f9a4a0051769b.
我该如何解决这个问题。此错误使我无法使用 运行 我的网络应用程序。包括我的 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```
玩了一整天。只需确保所有内容都更新到最新版本即可。进入你的 git 缓存目录并清理它... C:\Users\USERNAME\AppData\Roaming\Pub\Cache\git\cache
我希望这可以帮助别人不要像我一样浪费一整天...
我正在为 web 设置 flutter,但 flutter pub 升级失败。
这是错误 Could not find a file named "packages/flutter_web/pubspec.yaml" in https://github.com/flutter/flutter_web 7a4c33425ddd78c54aba07d86f3f9a4a0051769b.
我该如何解决这个问题。此错误使我无法使用 运行 我的网络应用程序。包括我的 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```
玩了一整天。只需确保所有内容都更新到最新版本即可。进入你的 git 缓存目录并清理它... C:\Users\USERNAME\AppData\Roaming\Pub\Cache\git\cache
我希望这可以帮助别人不要像我一样浪费一整天...