title: Duplicate Unity Ads Library in android studio
body: <p>I am using unity3d in my android studio project and need to import the unity ads aar file into my project. To do so I added the following lines and the unity-ads.aar to the libs folder :</p>
  <pre><code>    implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
      implementation files('libs/unity-ads.aar')
  </code></pre>
  <p>I get the following error when I compile the project :</p>
  <pre><code>Duplicate class com.unity3d.ads.BuildConfig found in modules jetified-unity-ads-4.2.1-runtime (com.unity3d.ads:unity-ads:4.2.1) and jetified-unity-ads-runtime (unity-ads.aar)
  </code></pre>
  <p>If I delete these lines and the unity-ads.aar file all the classes from unity3d aren't recogonized and I get errors.</p>
  <p>I don't understand why the classes are duplicated and how I can resolve this issue.</p>