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

前端 未结 28 1518
灰色年华
灰色年华 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:55

    None of the above worked for me ....

    You just need to go to File -> Project Structure or jus press Ctrl+Alt+Shift+S

    and then on the top left click Project Make sure that your Android Plugin Version is the same as you Android Studio Version .. This should fix it

    additionally

    You can also create a new Project and check under Project view initially you'll be in Android .. change the view to ... Project - > gradle (Note .. not .gradle only gradle ) ->wrapper ->gradle-wrapper properties.. open this file and you can see the last line ie ..

    distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
    

    make sure you have the same gradle version in your old files as well

    Check out this Youtube Video i made regarding this issue

    https://youtu.be/-Ngn4YvbKtw

提交回复
热议问题