Um.. yeah... so I wanted to use a Timer in a flutter app, and realized I needed to import the async library in order to do so.
So, per the installation instructions on pub.dev, I added the dependency to pubspec.yaml:
async: ^2.5.0
But when I run pub-get, the following text shows up in the messages tab:
Because every version of flutter_test from sdk depends on async
2.5.0-nullsafety.1 and flutter_app depends on async ^2.5.0, flutter_test from sdk is forbidden. So, because flutter_app depends on
flutter_test any from sdk, version solving failed. pub get failed (1;
So, because flutter_app depends on flutter_test any from sdk, version
solving failed.)
I'm trying to decipher this. Can you decipher this complex boolean algebraic word problem?
Related
after upgrade flutter 3 I am facing this version solving issue.
HTML version not sported SVG
if I am choosing SVG different version so RANDOM_AVTAR is not sported.
both plugin sported or dependent on different version an I need all this how can I control this versions.
ERRORS:
Because every version of random_avatar depends on flutter_svg ^1.0.3 and demo depends on flutter_svg 0.23.0, random_avatar is forbidden.
So, because demo depends on random_avatar ^0.0.2, version solving failed.
pub get failed (1; So, because demo depends on random_avatar ^0.0.2, version solving failed.)
Running "flutter pub get" in fluter...
Because demo depends on flutter_html ^2.1.5 which depends on flutter_svg >=0.22.0 <1.0.0, flutter_svg >=0.22.0 <1.0.0 is required.
So, because demo depends on flutter_svg ^1.0.3, version solving failed.
pub get failed (1; So, because demo depends on flutter_svg ^1.0.3, version solving failed.)
Just for work around you can use
flutter_svg: ^1.1.6
flutter_html: 3.0.0-alpha.5
random_avatar: ^0.0.7
Is there any other way to resolve this issue other than going on the dev channel (or than using analyzer <2.0.0)? I once made a poor, time consuming experience with the dev channel which is why I would prefer sticking with stable. And I need 2.0.0 for a bug fix of another package.
Because analyzer >=2.0.0 depends on meta ^1.7.0 and every version of
flutter_test from sdk depends on meta 1.3.0, analyzer >=2.0.0 is
incompatible with flutter_test from sdk. So, because denkschule
depends on both flutter_test any from sdk and analyzer 2.0.0, version
solving failed. pub get failed (1; So, because myP depends on both
flutter_test any from sdk and analyzer 2.0.0, version solving failed.)
In this case, since version 1.7.0 of package:meta is probably backward compatible with version 1.3.0, I think that it would be safe to add a dependency override to your pubspec.yaml file to force using the newer version:
dependency_overrides:
meta: ^1.7.0
(package:meta in particular should be safe since that package just provides annotations for static analysis and shouldn't affect runtime behavior.)
[![Because every version of flutter_test from sdk depends on async 2.6.1 and fstore depends on async 2.5.0, flutter_test from sdk is forbidden.
So, because fstore depends on flutter_test any from sdk, version solving failed.
Running "flutter pub get" in testupdate...
pub get failed (1; So, because fstore depends on flutter_test any from sdk, version solving failed.)
]1]1
Code was running on master channel but when I changed channel to dev after that i'm Getting this error on each channel
When I upgrade this Async I get more errors
This is because you are having a flutter package where its dependency needs a higher version than you need. This might be due to your dependencies have updated.
Use
flutter_launcher_icons: ^0.9.0
cached_network_image: ^3.0.0
Now both supports Null safety. Please use updated packages from https://pub.dev/packages
I am trying to start with UI automation tests in my flutter app. I am following this particular VIDEO. I was able to establish the part where you write the following snippet into pubspec.yaml
dev_dependencies:
flutter_test:
sdk: flutter
flutter_driver:
sdk: flutter
I need both flutter_test and flutter driver.
But when I add
test: any
I get this following error after hitting Get Dependencies
The current Dart SDK version is 2.8.4.
Because test <1.3.0 requires SDK version >=1.8.0 <2.0.0-∞ and test
=1.16.0-nullsafety requires SDK version >=2.10.0-0 <2.11.0, test <1.3.0-∞ or >=1.16.0-nullsafety is forbidden.
And because test >=1.3.0 <1.12.0 depends on boolean_selector ^1.0.0,
test <1.12.0-∞ or >=1.16.0-nullsafety requires boolean_selector
^1.0.0.
And because test >=1.9.3 <1.15.4 depends on analyzer >=0.36.0 <0.40.0
and every version of flutter_test from sdk depends on boolean_selector
2.0.0, if flutter_test any from sdk and test <1.15.4-∞ or >=1.16.0-nullsafety then analyzer >=0.36.0 <0.40.0.
And because test >=1.15.4 <1.16.0-nullsafety depends on analyzer
=0.36.0 <0.41.0 and json_serializable 0.5.8+1 depends on analyzer ^0.32.0, one of flutter_test any from sdk or test any or
json_serializable 0.5.8+1 must be false.
Because json_serializable >=0.1.0+1 <=0.5.8 requires SDK version
=1.22.1 <2.0.0-∞ and no versions of json_serializable match >0.5.8+1 <0.6.0, json_serializable >=0.1.0+1 <0.5.8+1 or >0.5.8+1 <0.6.0 is
forbidden.
Thus, one of flutter_test any from sdk or test any or
json_serializable >=0.1.0+1 <0.6.0 must be false.
And because MyApp depends on json_serializable ^0.5.0,
flutter_test from sdk is incompatible with test.
So, because MyApp depends on both flutter_test any from sdk and
test any, version solving failed. pub get failed (1; So, because
MyApp depends on both flutter_test any from sdk and test any,
version solving failed.)
I even tried to put there some specific version like 1.5.4 into the test parameter I get the same error.
PS:
My Flutter version is 1.17.4
My Dart Version 2.8.4
Is there a way how get rid of the error mentioned above? As I said, when I do not use "test" parameter everything works. I guess I will need this parameter later on.
I got this issue using flutter packages get:
Because every version of flutter_driver from sdk depends on file 5.0.6 and flutter_gallery depends on file 5.0.7, flutter_driver from sdk is forbidden.
So, because flutter_gallery depends on flutter_driver any from sdk, version solving failed.
pub upgrade failed (1)
I don't know what I am supposed to do here, I was trying to compile this flutter example: https://github.com/flutter/flutter/tree/master/examples/flutter_gallery
This may be because flutter dependencies are locked to fixed versions.
You can check this in the pubspec.yaml for flutter_driver which is in
\flutter\packages\flutter_driver
and compare it to the latest version at GitHub
If so, flutter upgrade won't necessarily update the dependencies versions. Doing a forced update of the packages may resolve your problem.
flutter update-packages --force-upgrade