错误:锁定文件中发现意外的锁定协议。预计3,找到0。 [英] Error:Unexpected lock protocol found in lock file. Expected 3, found 0.

查看:1691
本文介绍了错误:锁定文件中发现意外的锁定协议。预计3,找到0。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将android studio更新为2.3,然后将我的应用连接到Firebase,它给了我一个错误:
$ b

错误:在锁定文件中发现意外的锁定协议。预计3,找到0。



我需要回到2.2.3还是有什么办法解决这个问题?我尝试在我的项目中删除 .gradle 文件,但是它仍然给我一个错误。 删除 用户目录中的 .gradle 文件夹,而不是来自该项目的文件夹。

  C:\用户名\用户名\。格式在Windows 
/home/username/.gradle在Linux
/users/username/.gradle在Mac


I updated my android studio into 2.3 then upon connecting my app to Firebase, it gave me an error:

Error:Unexpected lock protocol found in lock file. Expected 3, found 0.

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.

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆