title: Cause: com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/io/IOCase in Studio 3.0
body: <p>I am developing one project. This is working fine with Android studio 2.3.3, but what happen is when i updated my <a href="https://developer.android.com/studio/index.html" rel="noreferrer">Android Studio 3.0</a> and open my project then it can't assembled and it send me below error Log.</p>
  
  <p><strong>Error Log</strong></p>
  
  <pre><code>Error:Error converting bytecode to dex:
  Cause: com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/io/IOCase;
  Error:com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/io/IOCase;
  Error:    at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)
  Error:  at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)
  Error:  at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)
  Error:  at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
  Error:  at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)
  Error:  at com.android.builder.dexing.DexArchiveMergerCallable.call(DexArchiveMergerCallable.java:61)
  Error:  at com.android.builder.dexing.DexArchiveMergerCallable.call(DexArchiveMergerCallable.java:36)
  Error:  at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
  Error:  at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
  Error:  at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
  Error:  at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
  Error:  at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
  Error:Execution failed for task ':app:transformDexArchiveWithDexMergerForDebug'.
  &gt; com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/io/IOCase;
  </code></pre>
  
  <p><strong>Please don't make it duplicate because i have tried below all the things</strong></p>
  
  <ul>
   <li> Clean project</li>
   <li> Rebuild project </li>
   <li> Deleted <b>/.gradle</b> folder in project after Reopen project and clean and rebuild 
   <li> Deleted <b>.gradle</b> cash folder after  Reopen project and clean and rebuild
  </ul>
  
  <p>Other think is i checked below stack overflow questions and its answer and other also then also i don't get the solution.</p>
  
  <p><a href="https://stackoverflow.com/questions/46224039/multiple-dex-files-define-lorg-apache-commons-io-ioutils">1. Question</a>, <a href="https://stackoverflow.com/questions/26515378/dexindexoverflowexception-issue-after-updating-to-latest-appcompat-and-support-l">2. Question</a>, <a href="https://stackoverflow.com/questions/46053902/dex-error-on-android-studio-3-0-beta4">3. Question</a>, <a href="https://stackoverflow.com/questions/46267621/unable-to-merge-dex">4. Question</a> and <a href="https://stackoverflow.com/questions/26515378/dexindexoverflowexception-issue-after-updating-to-latest-appcompat-and-support-l">5. Question</a></p>
  
  <blockquote>
    <p>Project level <strong>build.gradle</strong> file</p>
  </blockquote>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0'
          classpath 'com.google.gms:google-services:3.1.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          google()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <blockquote>
    <p>app level <strong>build.gradle</strong> file</p>
  </blockquote>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 25
      buildToolsVersion '26.0.2'
      defaultConfig {
          applicationId "com.mypackage"
          minSdkVersion 15
          targetSdkVersion 25
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  
          // for render script to create blur image
          renderscriptTargetApi 18
          renderscriptSupportModeEnabled true
  
          multiDexEnabled true
  
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.android.support:appcompat-v7:25.3.1'
      compile 'com.android.support:cardview-v7:25.3.1'
      compile 'com.android.support:design:25.3.1'
      compile 'com.android.support:multidex:1.0.0'
      testCompile 'junit:junit:4.12'
  
      compile 'com.jakewharton:butterknife:8.8.1'
      annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
  
      //google API
      compile 'com.google.firebase:firebase-auth:10.0.1'
      compile 'com.google.firebase:firebase-messaging:10.0.1'
      compile 'com.google.firebase:firebase-core:10.0.1'
      compile 'com.google.android.gms:play-services-auth:10.0.1'
      compile 'com.google.android.gms:play-services-places:10.0.1'
      compile 'com.google.android.gms:play-services-maps:10.0.1'
  
      //facebook SDK
      compile 'com.facebook.android:facebook-android-sdk:[4,5)'
  
      compile 'de.hdodenhof:circleimageview:2.1.0'
      compile 'com.github.bumptech.glide:glide:3.7.0'
      compile 'com.squareup.okhttp3:okhttp:3.4.2'
      compile ('org.apache.commons:commons-lang3:3.4'){
          exclude module: 'commons-io'
      }
  
      compile('net.yazeed44.imagepicker:imagepicker:1.3.0') {
          exclude module: 'cam2'
      }
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>Please do some help that how i can fix this issue. May i know if you need any thing from my side. Help would be very appreciate. Thank in advance.</p>