title: Getting Entry name 'classes.dex' collided error while building app
body: <p>I'm facing this error every single week at least 4 times. It usually happens when I switch building my app from Phone to Emulator. And usually I have to clean project and invalidate cache/restart entire studio 4-10 times in a row in order to remove this error. Is there any normal way to fix this? I think this is clearly some Android Studio bug which is happening randomly and it is starting to slow me in development because I cant build my app for 30-40 minutes straight.</p>
  <p>Sometimes I have to uninstall app from phone or emulator or completely wipe out emulator in order to fix this.</p>
  <p>Full error:</p>
  <pre><code>&gt; A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
     &gt; Entry name 'classes.dex' collided
  </code></pre>