It's actually very simple to overcome this issue. Navigate to the project folder and delete the following one .gradle. Restart the IDE and it should work properly afterwards.
Or in the IDE go to File -> Project Structure then Select Project and locate the gradle version. Navigate to C:\Users\YOURUSERNAME\.gradle\caches and delete the version you've identified.