Closed chalin closed 4 years ago
As a workaround, can you write your tutorial in grpc 2.1.3?
Otherwise, on flutter beta channel, flutter_test is compatible with crypto 2.1.5
I'm a beginner trying to use the grpc package, are the instructions for installing different or is package using lower cryto version?
@BstevensG4G This grpc package has dependencies crypto ^2.1.5, which means the version must be equal or higher than v2.1.5, and less than v2.2.0
Flutter stable currently has a hard dependency on crypto 2.1.4, which means you must use crypto v2.1.4
Therefore if you try to use grpc with Flutter together, you won't be able to fully resolve dependencies.
As a workaround, you can bump the grpc version down to a previous version, which depended on crypto 2.1.4, or you may use the flutter beta channel, which has upgraded crypto to 2.1.5. Your choice!
Excerpt from the current
pubspec.yaml
:When I try to use
grpc-dart ^2.2.0
in a simple Flutter client app (using Flutter@stable v1.17.5), I get the following dependency error:From the crypto Changelog we can read:
Given that v2.1.5 only updated descriptions, is there any reason not to depend on crypto ^2.1.4 instead?