You can easily fix this by deleting the gradle cache (see this question) found in:
~\.gradle\caches
By default, the Gradle User Home (
~/.gradle
orC:\Users\<USERNAME>\.gradle
) stores global configuration properties, initialization scripts, caches, and log files.