At office, I am behind a proxy. The internet access is restricted.
So I performed a gradle sync at home and copied the folder \".gradle\" present at C:\\Users\\user
How to configure gradle to work "offline" (using cached dependencies)
Uncheck the 'Offline work' under the Global Gradle settings fixes my issue.