title: Multiple dex files define exception
body: <p>I have got two library projects with practically identical build.gradle files. Both projects have support-library-v4 in dependencies  which declared like this</p>
  
  <pre><code>dependencies {
      compile 'com.android.support:support-v4:19.0.+'
  } 
  </code></pre>
  
  <p>and uploaded to nexus. The problem is as follows: when I add both (with one library everything is ok) libraries to the main projects the following exception is thrown:</p>
  
  <pre><code>UNEXPECTED TOP-LEVEL EXCEPTION:
  com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
      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)
  </code></pre>
  
  <p>As far as I understand the command </p>
  
  <pre><code>gradlew -q dependencies
  </code></pre>
  
  <p>doesn't shown any redundunt dependencies on support-library-v4</p>
  
  <pre><code>releaseApk - ## Internal use, do not manually configure ##
  +--- com.commonsware.cwac:endless:1.2.4
  +--- com.android.support:appcompat-v7:19.0.+ -&gt; 19.0.1
  |    \--- com.android.support:support-v4:19.0.1
  +--- com.squareup.retrofit:retrofit:1.3.0
  |    \--- com.google.code.gson:gson:2.2.4
  +--- com.squareup.picasso:picasso:2.1.1
  +--- com.google.code.gson:gson:2.2.4
  +--- ru.vang:progressswitcher:1.1.2
  \--- com.intech:android-commons:1.0.4
  </code></pre>
  
  <p>I'm using Android Studio 0.5.1, gradle-1.11 and the latest sdk. Library are packed in aar and uploaded to Nexus. Dependencies in the main project are </p>
  
  <pre><code>dependencies {
      compile 'com.commonsware.cwac:endless:1.2.4'
      compile 'com.android.support:appcompat-v7:19.0.+'
      compile 'com.squareup.retrofit:retrofit:1.3.0'
      compile 'com.squareup.picasso:picasso:2.1.1'
      compile 'com.google.code.gson:gson:2.2.4'
      compile('ru.vang:progressswitcher:1.1.2')
  }
  </code></pre>
  
  <p>What could be the problem?</p>