【发布时间】:2021-10-13 17:31:37
【问题描述】:
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
hive: ^1.0.0
hive_flutter: ^0.2.1
path_provider: ^1.3.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
dev_dependencies:
flutter_test:
sdk: flutter
integration_test:
sdk: flutter
build_runner: ^2.1.1
hive_generator: ^0.5.1
pub get failed (1; 因为依赖于 path_provider >=2.0.0 需要 SDK 版本 >=2.12.0-259.9.beta
如何解决?
【问题讨论】:
-
你目前的版本是什么?
-
您的依赖项需要 Dart SDK 2.12 或更高版本。将允许的最低 SDK 版本版本增加到 2.12(这也需要迁移到空安全)或降级您的依赖项。