Updated android and gradle now getting error "Execution failed for task ':app:compileDebugJavaWithJavac'
<p>I just updated android studio and the gradle, but now when i try running the app i get the following error:</p>

<pre><code>Execution failed for task ':app:compileDebugJavaWithJavac'.
&gt; Could not open local jar classpath snapshot write cache (C:\Users\Richi\Documents\Android Studio Project\AppMaster\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot).
   &gt; Unexpected lock protocol found in lock file. Expected 3, found 0.
</code></pre>

<p>not sure whats going on!!</p>