-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.Use area-dart-cli for issues related to the 'dart' command like tool.dart-cli-pubIssues related to the 'dart pub' toolIssues related to the 'dart pub' tooltype-questionA question about expected behavior or functionalityA question about expected behavior or functionality
Description
No idea what is wrong here.
Flutter version
PS C:\Users\nick_\xxx> fvm flutter --version
Flutter 3.0.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ee4e09cce0 (2 years, 9 months ago) • 2022-05-09 16:45:18 -0700
Engine • revision d1b9a6938a
Tools • Dart 2.17.0 • DevTools 2.12.2
pubspec.yaml
environment:
sdk: ">=2.15.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
dartx: ^1.0.0
....
analyzer: ^5.5.0
Error
PS C:\Users\nick_\xxx> fvm flutter pub get
Running "flutter pub get" in xxx...
The current Dart SDK version is 2.17.0.
Because every version of flutter from sdk depends on collection 1.16.0 and analyzer >=5.3.1 <5.7.1 depends on collection ^1.17.0, flutter from sdk is incompatible with analyzer >=5.3.1 <5.7.1.
And because analyzer >=5.7.1 requires SDK version >=2.19.0 <3.0.0 or >=3.0.0 <4.0.0, flutter from sdk is incompatible with analyzer >=5.3.1.
So, because xxx depends on both flutter from sdk and analyzer ^5.5.0, version solving failed.
pub get failed (1; So, because xxx depends on both flutter from sdk and analyzer ^5.5.0, version solving failed.)
PS C:\Users\nick_\xxx>
Why will get this error ? I tried clean, pub cacher repair...
Metadata
Metadata
Assignees
Labels
area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.Use area-dart-cli for issues related to the 'dart' command like tool.dart-cli-pubIssues related to the 'dart pub' toolIssues related to the 'dart pub' tooltype-questionA question about expected behavior or functionalityA question about expected behavior or functionality