Inside your project structure find a gradle->wrapper folder. Replace this any of the working project wrapper and then build gradle again. I tried this and it solved my issue.