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.
Delete the .gradle
folder from user directory, not from the project.
C:\users\username\.gradle in windows
/home/username/.gradle in Linux
/users/username/.gradle in Mac
Before you go deleting your entire general .gradle folder for android studio, please note the following implications and consequences.
Here is a 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With