Closed toebgen closed 2 years ago
First of all
because <project> depends on (...) flutter_cache_manager_firebase any
I would never recommend depending on 'any'.
Because flutter_cache_manager_firebase >=2.0.0 depends on firebase_storage ^8.0.0 ...
And because <project> depends on firebase_storage ^10.0.1
This is the issue in this case, this has nothing to do with "flutter channel stable", but with your project also depending on firebase_storage version 10. Reading the changelog I think it doesn't have breaking changes for this package and should be able to support >=8 < 11 fine.
Sure, the any
resulted from copying the output of flutter pub add flutter_cache_manager_firebase
, sorry for that. For correctness, when adding
flutter_cache_manager_firebase: ^2.0.0
to the pubspec.yaml
, the output of flutter pub get
is:
$ flutter pub get
Because flutter_cache_manager_firebase >=2.0.0 depends on firebase_storage ^8.0.0 and <project> depends on firebase_storage ^10.0.1, flutter_cache_manager_firebase >=2.0.0 is forbidden.
So, because <project> depends on flutter_cache_manager_firebase ^2.0.0, version solving failed.
Running "flutter pub get" in <project>...
pub get failed (1; So, because <project> depends on flutter_cache_manager_firebase ^2.0.0, version solving failed.)
So, how would the version solving be fixed?
Reading the changelog I think it doesn't have breaking changes for this package and should be able to support >=8 < 11 fine.
Would it need an update in this package here?
Please bear with me, if the question sounds silly, still new to Flutter. :-)
Same issue here. The package dependencies requires an update.
@toebgen While waiting a new release, a workaround is to manually override the Firebase Storage dependency in your pubspec.yaml :
dependencies:
[...]
dependency_overrides:
firebase_storage: 10.0.1
I updated to the new dependency in flutter_cache_manager_firebase: ^2.0.1
.
🐛 Bug Report
It seems on flutter channel stable it is not possible to add
flutter_cache_manager_firebase
right now. Am I missing anything on my side?Here are the details:
Reproduction steps
Configuration