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
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
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.
You can disable this experimental feature from File → Settings → Experimental → Gradle → Only sync the active variant