Kotlin Error: Unexpected lock protocol found in lock file. Expected 3, found 0

When we open a Kotlin Project, we may encounter this error: Unexpected lock protocol found in lock file. Expected 3, found 0..

.gradleThe solution was to delete the folder (and everything inside it) under the user folder on the computer .

C:\users\username\.gradle in windows
/home/username/.gradle in Linux 
/users/username/.gradle in Mac

おすすめ

転載: blog.csdn.net/zyctimes/article/details/128976700