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
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!