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

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

    All of these solutions did not work for me on Android Studio 2.1. What worked was me opening gradle-wrapper.properties in project folder and changing my gradle reference on the line below:

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

    This was changed to:

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

    After which gradle upgraded and the app started working!

提交回复
热议问题