gradle在锁定文件中找到意外的锁定协议.预期3,找到0 [英] gradle Unexpected lock protocol found in lock file. Expected 3, found 0
本文介绍了gradle在锁定文件中找到意外的锁定协议.预期3,找到0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
getting "Unexpected lock protocol found in lock file. Expected 3, found 0" error when trying to debug even after following this link and deleting the .gradle folder current gradle version is 4.4 and android studio 3.1.2
推荐答案
我找到了另一个我认为更好的解决方案.
I found another solution which i think is much better.
- 转到项目结构Ctrl + Alt + Shift + S,如果尚未选择,请从左侧菜单中选择项目".
- 选择最新的Android Gradle插件版本
- 选择Gradle版本为最新的稳定版本.
- 选择应用".
- 列表项
P.S最好将gradle更新到最新的稳定版本. 希望这会有所帮助
P.S It is better to Update gradle to latest stable version. Hope this helps
这篇关于gradle在锁定文件中找到意外的锁定协议.预期3,找到0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文