[英]Android Studio Error compileDebugJavaWithJavac
I keep getting this error我不断收到此错误
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.错误:任务 ':app:compileDebugJavaWithJavac' 的执行失败。 Unexpected lock protocol found in lock file.在锁定文件中发现意外的锁定协议。 Expected 3, found 0.预期为 3,发现为 0。
Thinkgs I've tried doing:我试过的想法:
Note: This error only appears when I try to run the program.注意:此错误仅在我尝试运行程序时出现。 If I never touch the run button all my code and builds are clean and successful, until I try running for the first time and it never goes if I try running again如果我从不触摸运行按钮,我的所有代码和构建都是干净且成功的,直到我第一次尝试运行,如果我再次尝试运行,它永远不会运行
Other posts about this problem is very confusing since there is no right answer on how to do this and all the answers aren't supported with feedback关于这个问题的其他帖子非常令人困惑,因为没有关于如何做到这一点的正确答案,并且所有的答案都不支持反馈
Thanks in advance!提前致谢!
Try deleting this file:尝试删除此文件:
c: \ users \ [myusername] \ .gradle \ caches \ 2.14.1
and restart the Android Studio并重新启动 Android Studio
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.