title: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$LayoutParams
body: <p>I'm getting Multiple dex files define error in my project.</p>
  
  <p>I'm using these two tags in <strong>build.gradle</strong> as well</p>
  
  <pre><code>dexOptions {
      preDexLibraries = false
  }
  defaultConfig {
      multiDexEnabled true
  
  }
  </code></pre>
  
  <p>but still getting this error.</p>
  
  <pre><code>   Information:Gradle tasks [:app:assembleDebug]
  Error:Error converting bytecode to dex:
  Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$LayoutParams;
  Error:com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$LayoutParams;
  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 Landroid/support/design/widget/CoordinatorLayout$LayoutParams;
  </code></pre>