Seems like the Flutter team did not get to depend on a null-safety version of crypto before flutter 2.
I can see in the flutter master branch that flutter_driver has been updated to depend on crypto 3.0.0. (https://github.com/flutter/flutter/pull/75370) so things should solve themselves in the next release (beta and stable). For right now the easiest workaround is probably to use a dependency override (https://dart.dev/tools/pub/dependencies#dependency-overrides) in your app's pubspec.yaml: dependency_overrides: crypto: 3.0.0 It will most likely just work. On Friday, March 12, 2021 at 4:36:23 AM UTC+1 [email protected] wrote: > Hi all, > > I've got a Flutter app where I'm using gRPC. I've just started writing > some Flutter integration tests [docs > <https://flutter.dev/docs/cookbook/testing/integration/introduction>] and > it looks like the latest version of the grpc dependency (3.0.0) > <https://pub.dev/packages/grpc> causes a version incompatibility. > > Here is the error I've been hitting: > Because every version of flutter_driver from sdk depends on crypto 2.1.5 > and grpc 3.0.0 depends on crypto ^3.0.0, flutter_driver from sdk is > incompatible with grpc 3.0.0. > And because no versions of grpc match >3.0.0 <4.0.0, flutter_driver from > sdk is incompatible with grpc ^3.0.0. > So, because flutterapp depends on both grpc ^3.0.0 and flutter_driver any > from sdk, version solving failed. > pub get failed (1; So, because flutterapp depends on both grpc ^3.0.0 and > flutter_driver any from sdk, version solving failed.) > > Has anyone dealt with this yet? Thanks! > > - Matt > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/780442e3-41d0-48ae-a957-133b67653cdfn%40googlegroups.com.
