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

前端 未结 28 1700
灰色年华
灰色年华 2020-12-01 01:18

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

28条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 01:32

    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.

提交回复
热议问题