I updated my android studio into 2.3 then upon connecting my app to Firebase, it gave me an error:
Error:Unexpected lock protocol found in lock file. Expected 3, found 0.
Do I need to go back to 2.2.3 or is there any way to fix this? I tried deleting .gradle file in my project but it still gave me an error.
Before you go deleting you entire general .gradle folder for android studio, please note the following implications and consequences.
Here is much better solution;
The file is not larger than 4 MB and it will not be re-downloaded but regenerated by android studio automatically, therefore the whole process should not take you 5 mins, costs no data, and all previous projects function as normal.
Delete the .gradle folder from the project's root folder. For example if your project root folder is MyApp.
Android Studio will download again all necessary Gradle files automatically (Internet Required).
All Done.
Delete the
.gradle
folder from user directory, not from the project.