更新了android和gradle现在收到错误“执行失败的任务':app:compileDebugJavaWithJavac'

时间:2016-08-25 15:51:52

标签: android

我刚刚更新了android studio和gradle,但是现在当我尝试运行应用程序时出现以下错误:

Execution failed for task ':app:compileDebugJavaWithJavac'.
> 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).
   > Unexpected lock protocol found in lock file. Expected 3, found 0.

不确定最新情况!!

1 个答案:

答案 0 :(得分:1)

删除.gradle文件夹并重启android studio。