awslabs / aws-mobile-appsync-sdk-android

Android SDK for AWS AppSync.
https://docs.amplify.aws/sdk/api/graphql/q/platform/android/
Apache License 2.0
105 stars 58 forks source link

AppSync gradle plugin has conflict with Apollo3 plugin #405

Closed giorgospat closed 1 year ago

giorgospat commented 1 year ago

I am already using Apollo client in my app and want to also use AppSync for subscriptions. When I add the com.amazonaws.appsync plugin in gradle, along with com.apollographql.apollo3, gradle build fails with error:

`What went wrong: An exception occurred applying plugin request [id: 'com.apollographql.apollo3', version: '3.3.2']

Failed to apply plugin 'com.apollographql.apollo3'. Cannot add extension with name 'apollo', as there is an extension already registered with that name.`

Environment

giorgospat commented 1 year ago

The solution is to have these two plugins in separate modules.