title: duplicate entry: android/support/annotation/ColorRes.class
body: <p>I get this error:</p>
  
  <pre><code>Error:Execution failed for task ':mobile:packageAllDebugClassesForMultiDex'.
  &gt; java.util.zip.ZipException: duplicate entry:    android/support/annotation/ColorRes.class
  </code></pre>
  
  <p>What I am doing?</p>
  
  <p>1-multiDexEnabled </p>
  
  <p>2-add this: configurations { all*.exclude group: 'com.android.support', module: 'support-v4' } and no work (another duplicate entry error)</p>
  
  <p>3-Delete dependencies one by one. doesn't work or get another error</p>
  
  <p>4-exclude dependencies one by one and doesn't work </p>
  
  <p><a href="http://i.stack.imgur.com/PPljg.jpg" rel="nofollow">screenshot</a></p>
  
  <p><strong>What could be the problem?</strong></p>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  
     dependencies
      {
          compile 'com.android.support:support-v4:22.2.1'
          compile 'com.android.support:appcompat-v7:22.2.1'
          compile 'com.android.support:cardview-v7:21.0.3'
          compile 'com.android.support:recyclerview-v7:21.0.3'
          compile 'com.android.support:multidex:1.0.1'
          compile 'com.google.android.gms:play-services:8.3.0'
          compile 'com.google.maps.android:android-maps-utils:0.4'
          compile 'com.afollestad:material-dialogs:0.6.3.4@aar'
          compile 'com.bignerdranch.android:recyclerview-multiselect:0.1'
          compile 'com.j256.ormlite:ormlite-android:4.48'
          compile 'com.melnykov:floatingactionbutton:1.2.0'
          compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
          compile 'se.emilsjolander:StickyScrollViewItems:1.1.0'
          compile fileTree(include: ['*.jar'], dir: 'libs')
          compile files('libs/appodeal-1.13.10.jar')
          compile files('libs/applovin-6.1.4.jar')
          compile files('libs/inmobi-5.0.1.jar')
          compile files('libs/android-support-v4-22.2.1.jar')
          compile files('libs/my-target-4.1.2.jar')
          compile files('libs/yandex-metrica-android-2.00.jar')
      }
  
   android
   {
  compileSdkVersion 22
  buildToolsVersion "22.0.1"
  
  
  defaultConfig
  {
      minSdkVersion 15
      targetSdkVersion 22
      versionCode VERSION_MAJOR*10000000 + VERSION_MINOR*100000 +      VERSION_PATCH*1000 + VERSION_BUILD
      versionName "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"
  
      // Enabling multidex support.
      multiDexEnabled true
  
      configurations {
          all*.exclude group: 'com.android.support', module: 'support-v4'
      }
  
  }
  </code></pre>