Could not find a file named "pubspec.yaml" in "C:\Users\xx\AppData\Local\Pub\Cache\intl_utils-1.9.0".
jianboy opened this issue · 4 comments
jianboy commented
Could not find a file named "pubspec.yaml" in "C:\Users\xx\AppData\Local\Pub\Cache\intl_utils-1.9.0".
jianboy commented
Because intl_utils ^1.9.0 depends on intl_translation 0.17.10+1 which depends on intl >=0.15.3 <0.17.0, intl_utils ^1.9.0 requires intl >=0.15.3 <0.17.0.
So, because flutter_2048 depends on both intl ^0.17.0 and intl_utils 1.9.0, version solving failed.
pub get failed (1; So, because flutter_2048 depends on both intl ^0.17.0 and intl_utils 1.9.0, version solving failed.)
pubspec.yaml
name: flutter_xx
description: xx
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: ^0.17.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
flutter_intl:
enabled: true
aleksakrstic commented
Hi @jianboy
Do you maybe use Dart version >2.12?
If yes, could you update environment.sdk
to ">=2.12.0-0 <3.0.0" and try again?
jianboy commented
Dart SDK version: 2.12.1 (stable) (Wed Mar 10 10:18:47 2021 +0100) on "windows_x64"
because flutter_xx depends on both intl ^0.17.0 and intl_utils 1.9.0, version solving failed
I had download intl_utils 1.9.0 and any others packages manually.
aleksakrstic commented
For null-safe Dart version you should use newer intl_utils
package versions and update environment.sdk
to ">=2.12.0-0 <3.0.0".
For instance intl_utils 2.4.0
.
Let me if that helped.