mqtt_client
mqtt_client copied to clipboard
Error in pubspec.yaml when using V9.7.1
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.)
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.
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 ?
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
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.
Upgrade to version 3.3.0 then the error goes away.