#Build failing with duplicate classes after upgrading to V3

1 messages · Page 1 of 1 (latest)

distant shuttle
#

I have just upgraded a project to V3 and I am now getting the following error when I try to build the project. Has anyone else had this?

Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class com.google.android.gms.games.AchievementsClient found in modules jetified-play-services-games-21.0.0-runtime (com.google.android.gms:play-services-games:21.0.0) and jetified-play-services-games-v2-20.1.2-runtime (com.google.android.gms:play-services-games-v2:20.1.2)
     Duplicate class com.google.android.gms.games.AnnotatedData found in modules jetified-play-services-games-21.0.0-runtime (com.google.android.gms:play-services-games:21.0.0) and jetified-play-services-games-v2-20.1.2-runtime (com.google.android.gms:play-services-games-v2:20.1.2)
     Duplicate class com.google.android.gms.games.CurrentPlayerInfo found in modules jetified-play-services-games-21.0.0-runtime (com.google.android.gms:play-services-games:21.0.0) and jetified-play-services-games-v2-20.1.2-runtime (com.google.android.gms:play-services-games-v2:20.1.2)
scenic widget
#

Do you use google play services plugin from github for game services? If so can you please disable that feature in our settings?

distant shuttle
#

Yeah after playing around I was able to completely remove that plugin, which seems to have stopped the error and probably not broken anything 😅😂