在安装mongo_dart 0.4.3的过程中,我收到以下错误(pub get)
Because every version of flutter_test from sdk depends on crypto 2.1.4 and mongo_dart >=0.4.1-dev.2.2 depends on crypto ^2.1.5, flutter_test from sdk is incompatible with mongo_dart >=0.4.1-dev.2.2.
So, because fluttermongo depends on both mongo_dart ^0.4.3 and flutter_test any from sdk, version solving failed.
pub get failed (1; So, because fluttermongo depends on both mongo_dart ^0.4.3 and flutter_test any from sdk, version solving failed.)
Process finished with exit code 1
我的pubspec.yaml:
name: fluttermongo
description: A new Flutter application.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
mongo_dart: ^0.4.3
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
dependency_overrides:
path: 1.6.4
flutter:
uses-material-design: true
我想念什么?我该如何播种?
答案 0 :(得分:0)
来自
sdk中的flutter_test取决于加密货币2.1.4,而mongo_dart> = 0.4.1-dev.2.2取决于加密货币^ 2.1.5,
降级您的fluttermongo版本。检查其是否支持crypto 2.1.4