zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.24k stars 612 forks source link

Error building on Android - Error: 'HttpLinkHeaders' #1299

Closed DamienMrtl closed 1 year ago

DamienMrtl commented 1 year ago

I get these errors when building for debug on android using graphql_flutter: ^5.1.2 and Flutter 3.7.3 • channel stable

...Local/Pub/Cache/hosted/pub.dev/graphql-5.1.3/lib/client.dart:10:1: Error: 'HttpLinkHeaders' is exported from both 'package:gql_exec/src/http.dart' and 'package:gql_http_link/src/link.dart'.
export 'package:graphql/src/links/links.dart';
links.dart:1

...Local/Pub/Cache/hosted/pub.dev/graphql-5.1.3/lib/client.dart:10:1: Error: 'HttpLinkResponseContext' is exported from both 'package:gql_exec/src/http.dart' and 'package:gql_http_link/src/link.dart'.
export 'package:graphql/src/links/links.dart';
DamienMrtl commented 1 year ago

Sorry my bad, I just had to delete my pubspec.lock file to fix it.