Gradle Build Failed in Android Studio (Cannot read testArtifacts.bin from cache)
<p>There is no error in the code. But the build fails with the following error:</p>

<pre><code>Error:Could not read entry ':app:packageDebug' from cache taskArtifacts.bin (/Users/sibidharan/Developer/Android Dev/Karpagam/.gradle/2.10/taskArtifacts/taskArtifacts.bin).
&gt; java.io.EOFException (no error message)
</code></pre>

<p>I am using Android Studio 2.0 Preview 9 on OS X 10.11.3 </p>