title: java.util.zip.ZipException: duplicate entry: android/support/v4/view/MotionEventCompatEclair.class
body: <p>I'm new to android studio and am trying to import a project from eclipse but I feel like i am running into every single problem possible. The error I'm currently getting is:</p>
  
  <pre><code>Error:Execution failed for task ':jobFlexwithInvoice:packageAllDebugClassesForMultiDex'.
  &gt; java.util.zip.ZipException: duplicate entry: android/support/v4/view/MotionEventCompatEclair.class
  </code></pre>
  
  <p>Ive seen similar answers to problems like <a href="https://stackoverflow.com/questions/32007296/duplicate-entry-in-android-studio">here</a> and <a href="https://stackoverflow.com/questions/26966843/java-util-zip-zipexception-duplicate-entry-during-packagealldebugclassesformult">here</a>. But i think I need more help because its just not going away. I've added the exception to just about everything in my build.gradle file, including the actual support 4v dependency just for kicks, and am still getting this error. And also I have multiple build.gradle files because of included projects? It seems like the project build.gradle file can be ignored, I just have to add the exceptions to the module build.gradle files? (which is annoying when someone says to add something to the build.gradle file, im not always sure which one)</p>
  
  <p>Anyway, here are the dependencies sections of each of my build.gradle files as they currently are:</p>
  
  <p>myApp:</p>
  
  <pre><code>dependencies {
      compile ('com.android.support:multidex:1.0.0'){
          exclude module: 'support-v4'
      }
      compile project(':facebook') {
          exclude module: 'support-v4'
      }
      compile project(':apptentive')
      compile project(':androidsdkui'){
          exclude module: 'support-v4'
      }
      compile ('com.google.android.gms:play-services:+'){
          exclude module: 'support-v4'
      }
      compile files('libs/android-support-v13.jar') {
          exclude module: 'support-v4'
      }
      compile files('libs/DynamicPDF.jar')
      compile files('libs/picasso-2.5.0.jar')
      compile ('com.android.support:support-v4:22.0.0'){
          exclude module: 'support-v4'
      }
  }
  </code></pre>
  
  <p>facebook:</p>
  
  <pre><code>dependencies {
      compile files('libs/bolts-android-1.2.1.jar')
      compile ('com.android.support:support-v4:22.0.0'){
          exclude module: 'support-v4'
      }
  }
  </code></pre>
  
  <p>androidsdkui:</p>
  
  <pre><code>dependencies {
      compile files('libs/appboy.jar')
      compile ('com.android.support:support-v4:22.0.0'){
          exclude module: 'support-v4'
      }
  }
  </code></pre>
  
  <p>there is also an apptentive build.gradle file but it does not have any dependencies. Before adding all of these exceptions I was getting the same error as the one in the first link, now the only difference is its <code>android/support/v4/view/MotionEventCompatEclair.class</code> instead of <code>android/support/v4/util/TimeUtils.class</code></p>
  
  <p>If there is a way to see where the duplicates are coming from that would be great too, I was unable to find anything with a quick google search.</p>