title: How to fix this error duplicate class found in module class.jar
body: <p>I got this error when I try to generate signed apk for my project</p>
  
  <blockquote>
    <p>Duplicate class com.google.android.gms.measurement.AppMeasurement
    found in modules classes.jar
    (com.google.android.gms:play-services-measurement-impl:16.5.0) and
    classes.jar (com.google.firebase:firebase-analytics-impl:10.0.1)
    Duplicate class com.google.firebase.analytics.FirebaseAnalytics found
    in modules classes.jar
    (com.google.android.gms:play-services-measurement-api:16.5.0) and
    classes.jar (com.google.firebase:firebase-analytics-impl:10.0.1)
    Duplicate class com.google.firebase.analytics.FirebaseAnalytics$Event
    found in modules classes.jar
    (com.google.android.gms:play-services-measurement-api:16.5.0) and
    classes.jar (com.google.firebase:firebase-analytics-impl:10.0.1)
    Duplicate class com.google.firebase.analytics.FirebaseAnalytics$Param
    found in modules classes.jar
    (com.google.android.gms:play-services-measurement-api:16.5.0) and
    classes.jar (com.google.firebase:firebase-analytics-impl:10.0.1)
    Duplicate class
    com.google.firebase.analytics.FirebaseAnalytics$UserProperty found in
    modules classes.jar
    (com.google.android.gms:play-services-measurement-api:16.5.0) and
    classes.jar (com.google.firebase:firebase-analytics-impl:10.0.1)</p>
  </blockquote>
  
  <p>Go to the documentation to learn how to Fix dependency resolution errors.</p>
  
  <p>how do I fix It?</p>