Mahmoud Mohsen Saad
Mahmoud Mohsen Saad

Reputation: 31

Error in gradle in android studio

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

Answers (3)

Sanket Parchande
Sanket Parchande

Reputation: 984

You can disable this experimental feature from File → Settings → Experimental → Gradle → Only sync the active variant

Upvotes: 0

Mahesh Gawhane
Mahesh Gawhane

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

shaithana
shaithana

Reputation: 2490

Try to delete the .gradle folder in your project and restart Android Studio.

Upvotes: 7

Related Questions