Flutter 颤振能';无法导入库

Flutter 颤振能';无法导入库,flutter,Flutter,这是我在pubspec.yaml文件中添加的图像选择器 dependencies: flutter: sdk: flutter url_launcher: ^4.0.3 google_maps_flutter: ^0.0.3+3 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style ico

这是我在pubspec.yaml文件中添加的图像选择器

dependencies:
  flutter:
    sdk: flutter
  url_launcher: ^4.0.3
  google_maps_flutter: ^0.0.3+3

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  image_picker:

我无法在我的类中导入图像选择器

请确保您运行
flatter-packages-get


如果仍然无法工作,请重新启动IDE。

我也面临同样的问题。我所做的事情以及之后对我有用的事情是: 1.在终端中运行命令:

flutter packages get
  • 重新启动IDE

  • 清除所有挂起的更新


  • 希望有帮助,确保所有更新都已完成。它有90%的可能性工作。

    您是否运行了
    flatterpackages
    ?是否尝试重新启动IDE?谢谢。重新启动IDE后,库正在工作