title: Exclude duplicate classes from 2 local .aar files in libs folder
body: <p>Can we remove duplicate classes from the local .aar files in libs folder.</p>
  <pre><code>Duplicate class com.regina.first.core.C$RefreshWebClientQueryIds found in modules jetified-regina-runtime.jar (abc.aar) and jetified-gms-sdk-debug-runtime.jar (xyz.aar)
  </code></pre>
  <p>I have tried using-</p>
  <pre><code>implementation (files('libs/abc.aar')) {
     exclude 'com.regina.first.core.C'
  }
  implementation fileTree(dir: 'libs', include: ['xyz.aar'])
  </code></pre>
  <p>But got the following response from the gradle although i am already using gradle version 4.0.1 -</p>
  <pre><code>Gradle DSL method not found: 'exclude()'
  Possible causes:
  The project 'atv-retail-app' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
  Upgrade plugin to version 4.0.1 and sync project
  
  The project 'atv-retail-app' may be using a version of Gradle that does not contain the method.
  Open Gradle wrapper file
  
  The build file may be missing a Gradle plugin.
  Apply Gradle plugin
  </code></pre>