mqtt_client icon indicating copy to clipboard operation
mqtt_client copied to clipboard

Error in pubspec.yaml when using V9.7.1

Open mars000 opened this issue 3 years ago • 5 comments

hope you can help. When I upgrade to V9.7.1 i get following error ... Not sure how to fix this if you can help would be much appreciated.

Running "flutter pub get" in flowDETECT_app...                  
Because every version of flutter_test from sdk depends on path 1.8.1 and mqtt_client >=9.6.9 depends on path ^1.8.2, flutter_test from sdk is incompatible with mqtt_client >=9.6.9.
So, because flowdetect depends on both mqtt_client ^9.7.1 and flutter_test from sdk, version solving failed.
pub get failed (1; So, because flowdetect depends on both mqtt_client ^9.7.1 and flutter_test from sdk, version solving failed.)

mars000 avatar Aug 11 '22 12:08 mars000

This seems to be a problem with flutter_test, it wants path 1.8.1, the client uses path 1.8.2 , flutter_test should be updated to latest path package.

shamblett avatar Aug 11 '22 13:08 shamblett

thank you for the reply. flutter_test is part of core library and I'm using latest version of flutter 3.0.5 So it would seem I'm using the latest version of flutter_test ?

mars000 avatar Aug 13 '22 00:08 mars000

just to add when I comment out flutter_test from pubspec.yaml I get the following error:

Running "flutter pub get" in flowDETECT_app...                  
Because mqtt_client >=9.6.9 depends on meta ^1.8.0 and every version of flutter from sdk depends on meta 1.7.0, mqtt_client >=9.6.9 is incompatible with flutter from sdk.
So, because flowdetect depends on both flutter from sdk and mqtt_client ^9.7.1, version solving failed.
pub get failed (1; So, because flowdetect depends on both flutter from sdk and mqtt_client ^9.7.1, version solving failed.)
exit code 1

mars000 avatar Aug 13 '22 00:08 mars000

Yes, again its showing that the flutter SDK is behind the latest version of these dependent packages.

By the looks of it the path package version changed at version 9.6.8 so you should be OK to use version 9.6.7 of this package.

This has happened before, for some reason Google pin flutter SDK releases to certain package version, this is all very well but you have to update frequently if you are going to do this or you will get situations like this.

shamblett avatar Aug 13 '22 08:08 shamblett

Upgrade to version 3.3.0 then the error goes away.

JacoFourie avatar Sep 03 '22 13:09 JacoFourie