"double entry: com / google / android / gms / auth / api / signin / internal / zzf.class" cannot build apk

Error: Execution completed for task ':app:transformClassesWithJarMergingForDebug'

.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com / google / android / gms / auth / api / signin / internal / zzf.class

+3


source to share


1 answer


There is a mismatch between the versions of play services used in your packages (i.e. a package using version x, another package using version y).

You can check which version of game services your project is using with

./gradlew :app:dependencies

You will get a result similar to



|    \--- com.google.android.gms:play-services-tasks:10.2.6 --> (11.0.1)(*)
+--- com.google.android.gms:play-services-basement:11.0.1 (*)

      

``,

In this output, you can see the latest version of the game services used in your project (in the above example it is 11.0.1).

In your file, you must specify this version for all game services (they must all use the same version). build.gradle

0


source







All Articles