It may be that Gradle is set to work offline
Solution: Just open File->Settings->Build, Execution, Deployment->Gradle-> uncheck offline work
It may be that Gradle is set to work offline
Solution: Just open File->Settings->Build, Execution, Deployment->Gradle-> uncheck offline work