gpt4 book ai didi

Flutter packages get 不安装新包

转载 作者:行者123 更新时间:2023-12-02 17:47:25 25 4
gpt4 key购买 nike

我正在尝试在 flutter 中安装一个包(dynamic_theme)。当我运行 flutter packages get -v 时,它甚至不会尝试安装该包。

到目前为止我已经尝试过:

  • 运行flutter packages get
  • 运行flutter packages get
  • 重新启动计算机
  • 更新了 flutter
  • 添加了另一个软件包,但没有安装
  • 更新了 Android Studio

在我的 pubspec.yaml 中我放入了:

dependencies:
flutter:
sdk: flutter
firebase_core:
cupertino_icons: ^0.1.2
dynamic_theme: ^1.0.1 # the package does not install
uuid: 2.0.0 # the package does not install

flutter packages get 详细运行的日志中,它安装了输出的包:

[ +422 ms] Running "flutter packages get" in quiz_app... (completed in 0.4s)
[ +57 ms] Found plugin firebase_core at E:\Other\SDKs\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.3.4\
[ +13 ms] Found plugin shared_preferences at E:\Other\SDKs\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.2\
[ +141 ms] Found plugin firebase_core at E:\Other\SDKs\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.3.4\
[ +6 ms] Found plugin shared_preferences at E:\Other\SDKs\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.2\
[ +26 ms] "flutter get" took 718ms.

我预计 flutter 下载并安装了这些软件包,但它只是检查已安装的软件包的更新,例如 firebase_core .

最佳答案

关闭并打开编辑器。为我工作;)

关于Flutter packages get 不安装新包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55771635/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com