错误:在锁定文件中发现意外的锁定协议.预期为 3,发现为 0. [英] Error:Unexpected lock protocol found in lock file. Expected 3, found 0.
本文介绍了错误:在锁定文件中发现意外的锁定协议.预期为 3,发现为 0.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将我的 android studio 更新为 2.3,然后在将我的应用程序连接到 Firebase 时,它给了我一个错误:
I updated my android studio into 2.3 then upon connecting my app to Firebase, it gave me an error:
错误:在锁定文件中发现意外的锁定协议.预期为 3,发现为 0.
Error:Unexpected lock protocol found in lock file. Expected 3, found 0.
我需要回到 2.2.3 还是有什么办法可以解决这个问题?我尝试删除项目中的 .gradle 文件,但它仍然给我一个错误.
Do I need to go back to 2.2.3 or is there any way to fix this? I tried deleting .gradle file in my project but it still gave me an error.
推荐答案
从用户目录中删除.gradle
文件夹,而不是从项目中删除.
Delete the .gradle
folder from user directory, not from the project.
C:\users\username\.gradle in windows
/home/username/.gradle in Linux
/users/username/.gradle in Mac
这篇关于错误:在锁定文件中发现意外的锁定协议.预期为 3,发现为 0.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文