- Home /
100s of Duplicate class Build errors in Unity Cloud Build after Firebase upgrade
Hello,
We have a Unity project (Unity 2019.2.15f1) where we are using multiple Firebase Plugins: Cloud Storage, Messaging & Remote Config
We recently updated the Firebase Unity Plugins from v6.7.0 to v6.15.2 The local build passed & even worked on Android phone.
BUT, it is throwing 100s of duplicate class build errors in Unity Cloud Build. We are clueless about the issue & are struggling to find a fix for it. Please find attached the Build Log from Unity Cloud Build. Did anyone face the same issue? Kindly help me fix it.
97: [Unity] ERROR: Duplicate class com.google.android.gms.internal.measurement.zzw found in modules classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.4:) 998: [Unity] ERROR: Duplicate class com.google.android.gms.internal.measurement.zzx found in modules classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.4:) 999: [Unity] ERROR: Duplicate class com.google.android.gms.internal.measurement.zzy found in modules classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.4:) 1000: [Unity] ERROR: Duplicate class com.google.android.gms.internal.measurement.zzz found in modules classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-base-17.4.4:) 1001: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurement found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1002: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurement$ConditionalUserProperty found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1003: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurement$Event found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1004: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurement$EventInterceptor found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1005: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurement$OnEventListener found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1006: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurement$Param found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1007: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurement$UserProperty found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1008: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurementContentProvider found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1009: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1010: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurementJobService found in modules classes.jar (:com.google.android.gms.play-services-measurement-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-17.4.4:) 1011: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurementReceiver found in modules classes.jar (:com.google.android.gms.play-services-measurement-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-17.4.4:) 1012: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.AppMeasurementService found in modules classes.jar (:com.google.android.gms.play-services-measurement-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-17.4.4:) 1013: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.api.AppMeasurementSdk found in modules classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.4:) 1014: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.api.AppMeasurementSdk$ConditionalUserProperty found in modules classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.4:) 1015: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.api.AppMeasurementSdk$EventInterceptor found in modules classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.4:) 1016: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.api.AppMeasurementSdk$OnEventListener found in modules classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-sdk-api-17.4.4:) 1017: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.internal.AppMeasurementDynamiteService found in modules classes.jar (:com.google.android.gms.play-services-measurement-sdk-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-sdk-17.4.4:) 1018: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.internal.AppMeasurementDynamiteService$zza found in modules classes.jar (:com.google.android.gms.play-services-measurement-sdk-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-sdk-17.4.4:) 1019: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.internal.AppMeasurementDynamiteService$zzb found in modules classes.jar (:com.google.android.gms.play-services-measurement-sdk-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-sdk-17.4.4:) 1020: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.internal.zza found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1021: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.internal.zzaa found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1022: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.internal.zzab found in modules classes.jar (:com.google.android.gms.play-services-measurement-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:)
1323: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.internal.zzz found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1324: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.module.Analytics found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1325: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.module.Analytics$Event found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1326: [Unity] ERROR: Duplicate class com.google.android.gms.measurement.module.Analytics$Param found in modules classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-impl-17.4.4:) 1327: [Unity] ERROR: Duplicate class com.google.firebase.analytics.FirebaseAnalytics found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1328: [Unity] ERROR: Duplicate class com.google.firebase.analytics.FirebaseAnalytics$Event found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1329: [Unity] ERROR: Duplicate class com.google.firebase.analytics.FirebaseAnalytics$Param found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1330: [Unity] ERROR: Duplicate class com.google.firebase.analytics.FirebaseAnalytics$UserProperty found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1331: [Unity] ERROR: Duplicate class com.google.firebase.analytics.connector.AnalyticsConnectorImpl found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1332: [Unity] ERROR: Duplicate class com.google.firebase.analytics.connector.AnalyticsConnectorImpl$1 found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1333: [Unity] ERROR: Duplicate class com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:) 1334: [Unity] ERROR: Duplicate class com.google.firebase.analytics.connector.internal.zza found in modules classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.2:) and classes.jar (:com.google.android.gms.play-services-measurement-api-17.4.4:)
1345: [Unity] ERROR: Duplicate class com.google.protobuf.AbstractMessageLite found in modules com.google.protobuf.protobuf-javalite-3.11.0.jar (com.google.protobuf.protobuf-javalite-3.11.0.jar) and com.google.protobuf.protobuf-lite-3.0.1.jar (com.google.protobuf.protobuf-lite-3.0.1.jar) 1346: [Unity] ERROR: Duplicate class com.google.protobuf.AbstractMessageLite$Builder found in modules com.google.protobuf.protobuf-javalite-3.11.0.jar (com.google.protobuf.protobuf-javalite-3.11.0.jar) and com.google.protobuf.protobuf-lite-3.0.1.jar (com.google.protobuf.protobuf-lite-3.0.1.jar) 1347: [Unity] ERROR: Duplicate class com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream found in modules com.google.protobuf.protobuf-javalite-3.11.0.jar (com.google.protobuf.protobuf-javalite-3.11.0.jar) and com.google.protobuf.protobuf-lite-3.0.1.jar (com.google.protobuf.protobuf-lite-3.0.1.jar) 1348: [Unity] ERROR: Duplicate class com.google.protobuf.AbstractParser found in modules com.google.protobuf.protobuf-javalite-3.11.0.jar (com.google.protobuf.protobuf-javalite-3.11.0.jar) and com.google.protobuf.protobuf-lite-3.0.1.jar (com.google.protobuf.protobuf-lite-3.0.1.jar) 1349: [Unity] ERROR: Duplicate class com.google.protobuf.AbstractProtobufList found in modules com.google.protobuf.protobuf-javalite-3.11.0.jar (com.google.protobuf.protobuf-javalite-3.11.0.jar) and com.google.protobuf.protobuf-lite-3.0.1.jar (com.google.protobuf.protobuf-lite-3.0.1.jar) 1350: [Unity] ERROR: Duplicate class com.google.protobuf.BooleanArrayList found in modules com.google.protobuf.protobuf-javalite-3.11.0.jar (com.google.protobuf.protobuf-javalite-3.11.0.jar) and com.google.protobuf.protobuf-lite-3.0.1.jar (com.google.protobuf.protobuf-lite-3.0.1.jar) 1351: [Unity] ERROR: Duplicate class com.google.protobuf.ByteBufferWriter found in modules com.google.protobuf.protobuf-javalite-3.11.0.jar (com.google.protobuf.protobuf-javalite-3.11.0.jar) and com.google.protobuf.protobuf-lite-3.0.1.jar (com.google.protobuf.protobuf-lite-3.0.1.jar)
Your answer
![](https://koobas.hobune.stream/wayback/20220613012801im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Unity 2017.3.1f1 Cloud Build Deadlock with Unit Testing and .NET 4.6 1 Answer
[Cloud build] iOS build error after changing compilation settings from Xcode 8.3 to Xcode 9+ 0 Answers
How to use Cloud Build without Unexpected Build Warnings? 1 Answer