Unexpected Android file lock file

I am trying to import an android studio project into a new machine. Import is going well and project directories are displayed correctly. However, when I try to create or clean up a project, the following error occurs in Android Studio.

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

I tried to close and reopen the project, changing the permissions of the folder containing the projects, but nothing changes. How can I solve this error?

+4
source share
6 answers

Go to the local file and find the ".gradle" folder

Remove it and restart the IDE.

+21
source

.gradle home Android Studio . , .gradle Android Project, .

+5

, .gradle .

, C:\Users \.gradle IDE.

+3

SDK ,

+1

, , → /

0

It is also sufficient to delete only all * .lock files in the ~ / .gradle folder

-1
source

All Articles