dart-lang/path

Can the latest version be compatible with the latest stable version of Flutter?

Closed this issue · 4 comments

Excuse me, I have a question: Can the latest version of path be compatible with the latest stable version of Flutter (which is 1.17.1)?
because when I try to download the latest version of path, it say that flutter test required 1.6.4, so it failed to download ...
Thank you!

I am going to ave to double down on this...

> flutter pub get
Because every version of flutter_test from sdk depends on path 1.6.4 and <APP> depends on path ^1.7.0, flutter_test from sdk is forbidden. So, because <APP> depends on flutter_test any from sdk, version solving failed. Running "flutter pub get" in <APP>... pub get failed (1; So, because <APP> depends on flutter_test any from sdk, version solving failed.)

@dinhan1192 Just in case you didn't know, a fix for this is to set path to version 1.6.4 on the pubsec.yaml file so that the version will match Flutter's version

This isn't something we have control over from the package side. For requests to support a newer version of a pub package which is pinned by flutter you can file an issue in the flutter repo. In many cases it should be sufficient to use a wider constraint to allow the version that flutter is using.

We do have an issue file to try to make this more clear when the conflict is coming from flutter version pinning: dart-lang/pub#2511

A constraint of ^1.6.0 should work for you.