Gradle\'s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
I got this issue after updating the android plugin.
Ple
Well I resolved the issue.
Remove the ~/.gradle/wrapper/dists/gradle-4.10.1-all folder and then rebuild the project in android studio.
rm -rf ~/.gradle/wrapper/dists/gradle-4.10.1-all
This removes the corrupted or partially downloaded gradle-4.10.1-all.
This is working for me.