title: Gradle error after upgrading to Android Studio to 2.0 Preview and using Instant Run
body: <p>When I try to run my project which works great on Android Studio 1.5 I get the following error:</p>
  
  <pre><code>Error:Access to the dex task is now impossible, starting with 1.4.0
  1.4.0 introduces a new Transform API allowing manipulation of the .class files.
  See more information: http://tools.android.com/tech-docs/new-build-system/transform-api
  </code></pre>
  
  <p>I saw some questions here regarding this error, but all answer are to downgrade Gradle to 1.3 version, which I can't do with the new Android Studio and the Instant Run option.</p>
  
  <p>Is there another solution to this problem?</p>