Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio unexpected lock file protocol

Am trying to import an android studio project into a new machine. The import goes on fine and the directories of the project are displayed correctly.However, when i try to build or clean the project, android studio raises the following error

Gradle 'ngoma' project refresh failed
Error:Unexpected lock protocol found in lock file. Expected 3, found 0.

I have tried closing and reopening the project, changing the permissions of the folder containing the projects but nothing is changing. How can I solve this error??

like image 344
mungaih pk Avatar asked Dec 15 '14 10:12

mungaih pk


People also ask

How do I fix unexpected lock protocol found in lock file?

From File menu click on Invalidate Cache / Restart. And then Click on Invalidate and Restart. It will fix your problem.


1 Answers

Go into your local file project and search for the ".gradle" folder

Erase it and restart your IDE.

like image 189
1020rpz Avatar answered Oct 14 '22 11:10

1020rpz