Infinite resolving dependencies from unavailable repos?

I’m new for gradle. I started working on a new project today, I was provided with source code which uses gradle. So I tried to import this project in Idea and start working on it. There were repos mentioned in build.gradle which are unavailable from my PC and I stuck with a message “Gradle: Resolve dependecies ‘:classpath’” for several hours trying to figure out what is going on.
I don’t get it why It’s implemented this way or did I do something wrong? Why just not to try for some reasonable amount of time and then just write an error message?