title: Exclude module at gradle
body: <p>I have the following gradle file in my project:</p>
  
  <pre><code>repositories {
      jcenter()
      flatDir {
          dirs 'libs'
      }
  }
  
  dependencies {
      compile(name:'payment-gateway', ext:'aar')
  }
  
  android {
      packagingOptions {
          exclude 'META-INF/NOTICE'
          exclude 'META-INF/LICENSE'
      }
  }
  </code></pre>
  
  <p>The problem in that payment-gateway.aar is third party and contains an old version of library: idtech-card-reader-resources-v4.4.jar</p>
  
  <p>At the same time we already are using new version of this librbary:
  UniMag_SDK_v5.0.jar</p>
  
  <p>So during compilation process I'm receiving the following error:</p>
  
  <blockquote>
    <p>Error:Error converting bytecode to dex: Cause:
    com.android.dex.DexException: Multiple dex files define
    LIDTech/MSR/XMLManager/ConfigParameters;</p>
  </blockquote>
  
  <p>Could someone help me to resolve conflict? How I can tell to exclude 'idtech-card-reader-resources-v4.4.jar' or to use latest version of library?</p>