Reputation: 31
I was setting up Android studio on windows 7 for the first time and I got this error :
Gradle 'MyApplication5' project refresh failed
Error:Unexpected lock protocol found in lock file. Expected 3, found 0
Upvotes: 3
Views: 4316
Reputation: 984
You can disable this experimental feature from File → Settings → Experimental → Gradle → Only sync the active variant
Upvotes: 0
Reputation: 338
In android studio, Click on "File" then click "Invalidate caches/Restart" and confirm. if this not solves your problem then delete .gradle file from your project file and restart Android Studio.
Upvotes: 1
Reputation: 2490
Try to delete the .gradle folder in your project and restart Android Studio.
Upvotes: 7