Check whether gradle.properties exists and is not added to .gitignore. It was cause of the issue in our case.