After upgrading Android Studio to 1.3, I can\'t compile my project anymore. I am getting Unexpected lock protocol found in lock file. Expected 3, found 0.. I ha
okay here's very lightweight solution with steps:
Ctrl+Alt+Shift+S or File->Project Structure
Select Project from left panel
Now check your Gradle Version at right panel
In my case my Gradle Version is 3.3
Navigate C:\Users\ashish\.gradle\caches and delete your Gradle Version - 3.3 named folder.
Now restart or open your project again from workspace.
Greetings...your problem is solved.