title: Cordova com.danielcwilson.plugins.googleanalytics with com.admob.google
body: <p>I use Apache Cordova 4 to build my Android project with two Cordova plugins added:
  com.admob.google 4.0.7
  and
  com.danielcwilson.plugins.googleanalytics</p>
  
  <p>when I execute </p>
  
  <pre><code>$cordova build 
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple
    dex files define Lcom/google/android/gms/analytics/internal/Command$1;
    at
    com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
    at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
    at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
    at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170) at
    com.android.dx.merge.DexMerger.merge(DexMerger.java:188) at
    com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287) at
    com.android.dx.command.dexer.Main.run(Main.java:230) at
    com.android.dx.command.dexer.Main.main(Main.java:199) at
    com.android.dx.command.Main.main(Main.java:103)</p>
    
    <p>:dexDebug FAILED</p>
  </blockquote>
  
  <p>I found out that this is a problem with multiple dependency, but can I solve this in anyway? When I remove one of the plugins build works ok.</p>
  
  <p>Thanks!</p>