title: Google IMA and Jetified duplicate class error Android
body: <p>I am trying to ad Google IMA to ExoPlayer so I can add ads to my video app. I have the most current version of ExoPlayer set up: implementation 'com.google.android.exoplayer:exoplayer:2.17.1', but when I try to add the IMA extension implementation 'com.google.android.exoplayer:extension-ima:2.17.1' in my build gradle I get the following error:</p>
  <pre><code>Duplicate class com.google.ads.interactivemedia.v3.api.Ad found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  </code></pre>
  <p>Duplicate class com.google.ads.interactivemedia.v3.api.AdDisplayContainer found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdError found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdError$AdErrorCode found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdError$AdErrorType found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdErrorEvent found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdErrorEvent$AdErrorListener found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdEvent found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdEvent$AdEventListener found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdEvent$AdEventType found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdPodInfo found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdsLoader found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdsLoader$AdsLoadedListener found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdsManager found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdsManagerLoadedEvent found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdsRenderingSettings found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.AdsRequest found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.CompanionAdSlot found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.ImaSdkFactory found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.ImaSdkSettings found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.UiElement found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.player.AdProgressProvider found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.player.ContentProgressProvider found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.player.VideoAdPlayer found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.player.VideoAdPlayer$VideoAdPlayerCallback found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.api.player.VideoProgressUpdate found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.TestingConfiguration found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.a found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.b found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.c found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.d found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.e found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.f found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.g found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.h found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.i found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.j found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.k found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)
  Duplicate class com.google.ads.interactivemedia.v3.impl.data.l found in modules jetified-interactivemedia-3.26.0 (com.google.ads.interactivemedia.v3:interactivemedia:3.26.0) and jetified-sdk (sdk.jar)</p>
  <p>I've tried Navigate &gt; Class and found a bunch of abstract class references to com.google.ads.interactivemedia.v3.api. I see why the error is occurring but still not sure how to resolve it. Does anyone know how this can be resolved?</p>