简体   繁体   中英

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

尝试删除项目中的.gradle文件夹并重新启动Android Studio。

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 .

您可以从文件→设置→实验→Gradle→仅同步活动变体来禁用此实验性功能

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM